csharptest | 35b6852 | 2011-05-20 12:22:21 -0500 | [diff] [blame] | 1 | // Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT!
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2 |
|
| 3 | using pb = global::Google.ProtocolBuffers;
|
| 4 | using pbc = global::Google.ProtocolBuffers.Collections;
|
| 5 | using pbd = global::Google.ProtocolBuffers.Descriptors;
|
| 6 | using scg = global::System.Collections.Generic;
|
| 7 | namespace Google.ProtocolBuffers.TestProtos {
|
| 8 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 10 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 11 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 12 | public static partial class UnitTestLiteProtoFile {
|
| 13 |
|
| 14 | #region Extension registration
|
| 15 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
|
| 16 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite);
|
| 17 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite);
|
| 18 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite);
|
| 19 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite);
|
| 20 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite);
|
| 21 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite);
|
| 22 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite);
|
| 23 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite);
|
| 24 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite);
|
| 25 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite);
|
| 26 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite);
|
| 27 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite);
|
| 28 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite);
|
| 29 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite);
|
| 30 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite);
|
| 31 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite);
|
| 32 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite);
|
| 33 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite);
|
| 34 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite);
|
| 35 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite);
|
| 36 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite);
|
| 37 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite);
|
| 38 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite);
|
| 39 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite);
|
| 40 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite);
|
| 41 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite);
|
| 42 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite);
|
| 43 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite);
|
| 44 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite);
|
| 45 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite);
|
| 46 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite);
|
| 47 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite);
|
| 48 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite);
|
| 49 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite);
|
| 50 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite);
|
| 51 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite);
|
| 52 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite);
|
| 53 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite);
|
| 54 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite);
|
| 55 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite);
|
| 56 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite);
|
| 57 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite);
|
| 58 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite);
|
| 59 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite);
|
| 60 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite);
|
| 61 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite);
|
| 62 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite);
|
| 63 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite);
|
| 64 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite);
|
| 65 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite);
|
| 66 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite);
|
| 67 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite);
|
| 68 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite);
|
| 69 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite);
|
| 70 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite);
|
| 71 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite);
|
| 72 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite);
|
| 73 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite);
|
| 74 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite);
|
| 75 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite);
|
| 76 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite);
|
| 77 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite);
|
| 78 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite);
|
| 79 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite);
|
| 80 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite);
|
| 81 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite);
|
| 82 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite);
|
| 83 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite);
|
| 84 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite);
|
| 85 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite);
|
| 86 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite);
|
| 87 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite);
|
| 88 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite);
|
| 89 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite);
|
| 90 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite);
|
| 91 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite);
|
| 92 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite);
|
| 93 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite);
|
| 94 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite);
|
| 95 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite);
|
| 96 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite);
|
| 97 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 98 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLite);
|
| 99 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLite);
|
| 100 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLite);
|
| 101 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLite);
|
| 102 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLite);
|
| 103 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLite);
|
| 104 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLite);
|
| 105 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLite);
|
| 106 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLite);
|
| 107 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLite);
|
| 108 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLite);
|
| 109 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLite);
|
| 110 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLite);
|
| 111 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLite);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 112 | registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension);
|
| 113 | }
|
| 114 | #endregion
|
| 115 | #region Extensions
|
| 116 | public const int OptionalInt32ExtensionLiteFieldNumber = 1;
|
| 117 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalInt32ExtensionLite;
|
| 118 | public const int OptionalInt64ExtensionLiteFieldNumber = 2;
|
| 119 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalInt64ExtensionLite;
|
| 120 | public const int OptionalUint32ExtensionLiteFieldNumber = 3;
|
| 121 | [global::System.CLSCompliant(false)]
|
| 122 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalUint32ExtensionLite;
|
| 123 | public const int OptionalUint64ExtensionLiteFieldNumber = 4;
|
| 124 | [global::System.CLSCompliant(false)]
|
| 125 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalUint64ExtensionLite;
|
| 126 | public const int OptionalSint32ExtensionLiteFieldNumber = 5;
|
| 127 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSint32ExtensionLite;
|
| 128 | public const int OptionalSint64ExtensionLiteFieldNumber = 6;
|
| 129 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSint64ExtensionLite;
|
| 130 | public const int OptionalFixed32ExtensionLiteFieldNumber = 7;
|
| 131 | [global::System.CLSCompliant(false)]
|
| 132 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalFixed32ExtensionLite;
|
| 133 | public const int OptionalFixed64ExtensionLiteFieldNumber = 8;
|
| 134 | [global::System.CLSCompliant(false)]
|
| 135 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalFixed64ExtensionLite;
|
| 136 | public const int OptionalSfixed32ExtensionLiteFieldNumber = 9;
|
| 137 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSfixed32ExtensionLite;
|
| 138 | public const int OptionalSfixed64ExtensionLiteFieldNumber = 10;
|
| 139 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSfixed64ExtensionLite;
|
| 140 | public const int OptionalFloatExtensionLiteFieldNumber = 11;
|
| 141 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> OptionalFloatExtensionLite;
|
| 142 | public const int OptionalDoubleExtensionLiteFieldNumber = 12;
|
| 143 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> OptionalDoubleExtensionLite;
|
| 144 | public const int OptionalBoolExtensionLiteFieldNumber = 13;
|
| 145 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> OptionalBoolExtensionLite;
|
| 146 | public const int OptionalStringExtensionLiteFieldNumber = 14;
|
| 147 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringExtensionLite;
|
| 148 | public const int OptionalBytesExtensionLiteFieldNumber = 15;
|
| 149 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> OptionalBytesExtensionLite;
|
| 150 | public const int OptionalGroupExtensionLiteFieldNumber = 16;
|
| 151 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite> OptionalGroupExtensionLite;
|
| 152 | public const int OptionalNestedMessageExtensionLiteFieldNumber = 18;
|
| 153 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> OptionalNestedMessageExtensionLite;
|
| 154 | public const int OptionalForeignMessageExtensionLiteFieldNumber = 19;
|
| 155 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> OptionalForeignMessageExtensionLite;
|
| 156 | public const int OptionalImportMessageExtensionLiteFieldNumber = 20;
|
| 157 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> OptionalImportMessageExtensionLite;
|
| 158 | public const int OptionalNestedEnumExtensionLiteFieldNumber = 21;
|
| 159 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> OptionalNestedEnumExtensionLite;
|
| 160 | public const int OptionalForeignEnumExtensionLiteFieldNumber = 22;
|
| 161 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> OptionalForeignEnumExtensionLite;
|
| 162 | public const int OptionalImportEnumExtensionLiteFieldNumber = 23;
|
| 163 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> OptionalImportEnumExtensionLite;
|
| 164 | public const int OptionalStringPieceExtensionLiteFieldNumber = 24;
|
| 165 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringPieceExtensionLite;
|
| 166 | public const int OptionalCordExtensionLiteFieldNumber = 25;
|
| 167 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalCordExtensionLite;
|
| 168 | public const int RepeatedInt32ExtensionLiteFieldNumber = 31;
|
| 169 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedInt32ExtensionLite;
|
| 170 | public const int RepeatedInt64ExtensionLiteFieldNumber = 32;
|
| 171 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedInt64ExtensionLite;
|
| 172 | public const int RepeatedUint32ExtensionLiteFieldNumber = 33;
|
| 173 | [global::System.CLSCompliant(false)]
|
| 174 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedUint32ExtensionLite;
|
| 175 | public const int RepeatedUint64ExtensionLiteFieldNumber = 34;
|
| 176 | [global::System.CLSCompliant(false)]
|
| 177 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedUint64ExtensionLite;
|
| 178 | public const int RepeatedSint32ExtensionLiteFieldNumber = 35;
|
| 179 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSint32ExtensionLite;
|
| 180 | public const int RepeatedSint64ExtensionLiteFieldNumber = 36;
|
| 181 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSint64ExtensionLite;
|
| 182 | public const int RepeatedFixed32ExtensionLiteFieldNumber = 37;
|
| 183 | [global::System.CLSCompliant(false)]
|
| 184 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedFixed32ExtensionLite;
|
| 185 | public const int RepeatedFixed64ExtensionLiteFieldNumber = 38;
|
| 186 | [global::System.CLSCompliant(false)]
|
| 187 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedFixed64ExtensionLite;
|
| 188 | public const int RepeatedSfixed32ExtensionLiteFieldNumber = 39;
|
| 189 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSfixed32ExtensionLite;
|
| 190 | public const int RepeatedSfixed64ExtensionLiteFieldNumber = 40;
|
| 191 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSfixed64ExtensionLite;
|
| 192 | public const int RepeatedFloatExtensionLiteFieldNumber = 41;
|
| 193 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> RepeatedFloatExtensionLite;
|
| 194 | public const int RepeatedDoubleExtensionLiteFieldNumber = 42;
|
| 195 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> RepeatedDoubleExtensionLite;
|
| 196 | public const int RepeatedBoolExtensionLiteFieldNumber = 43;
|
| 197 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> RepeatedBoolExtensionLite;
|
| 198 | public const int RepeatedStringExtensionLiteFieldNumber = 44;
|
| 199 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringExtensionLite;
|
| 200 | public const int RepeatedBytesExtensionLiteFieldNumber = 45;
|
| 201 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> RepeatedBytesExtensionLite;
|
| 202 | public const int RepeatedGroupExtensionLiteFieldNumber = 46;
|
| 203 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite> RepeatedGroupExtensionLite;
|
| 204 | public const int RepeatedNestedMessageExtensionLiteFieldNumber = 48;
|
| 205 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageExtensionLite;
|
| 206 | public const int RepeatedForeignMessageExtensionLiteFieldNumber = 49;
|
| 207 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageExtensionLite;
|
| 208 | public const int RepeatedImportMessageExtensionLiteFieldNumber = 50;
|
| 209 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageExtensionLite;
|
| 210 | public const int RepeatedNestedEnumExtensionLiteFieldNumber = 51;
|
| 211 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumExtensionLite;
|
| 212 | public const int RepeatedForeignEnumExtensionLiteFieldNumber = 52;
|
| 213 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumExtensionLite;
|
| 214 | public const int RepeatedImportEnumExtensionLiteFieldNumber = 53;
|
| 215 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumExtensionLite;
|
| 216 | public const int RepeatedStringPieceExtensionLiteFieldNumber = 54;
|
| 217 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringPieceExtensionLite;
|
| 218 | public const int RepeatedCordExtensionLiteFieldNumber = 55;
|
| 219 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedCordExtensionLite;
|
| 220 | public const int DefaultInt32ExtensionLiteFieldNumber = 61;
|
| 221 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultInt32ExtensionLite;
|
| 222 | public const int DefaultInt64ExtensionLiteFieldNumber = 62;
|
| 223 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultInt64ExtensionLite;
|
| 224 | public const int DefaultUint32ExtensionLiteFieldNumber = 63;
|
| 225 | [global::System.CLSCompliant(false)]
|
| 226 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultUint32ExtensionLite;
|
| 227 | public const int DefaultUint64ExtensionLiteFieldNumber = 64;
|
| 228 | [global::System.CLSCompliant(false)]
|
| 229 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultUint64ExtensionLite;
|
| 230 | public const int DefaultSint32ExtensionLiteFieldNumber = 65;
|
| 231 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSint32ExtensionLite;
|
| 232 | public const int DefaultSint64ExtensionLiteFieldNumber = 66;
|
| 233 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSint64ExtensionLite;
|
| 234 | public const int DefaultFixed32ExtensionLiteFieldNumber = 67;
|
| 235 | [global::System.CLSCompliant(false)]
|
| 236 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultFixed32ExtensionLite;
|
| 237 | public const int DefaultFixed64ExtensionLiteFieldNumber = 68;
|
| 238 | [global::System.CLSCompliant(false)]
|
| 239 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultFixed64ExtensionLite;
|
| 240 | public const int DefaultSfixed32ExtensionLiteFieldNumber = 69;
|
| 241 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSfixed32ExtensionLite;
|
| 242 | public const int DefaultSfixed64ExtensionLiteFieldNumber = 70;
|
| 243 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSfixed64ExtensionLite;
|
| 244 | public const int DefaultFloatExtensionLiteFieldNumber = 71;
|
| 245 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> DefaultFloatExtensionLite;
|
| 246 | public const int DefaultDoubleExtensionLiteFieldNumber = 72;
|
| 247 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> DefaultDoubleExtensionLite;
|
| 248 | public const int DefaultBoolExtensionLiteFieldNumber = 73;
|
| 249 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> DefaultBoolExtensionLite;
|
| 250 | public const int DefaultStringExtensionLiteFieldNumber = 74;
|
| 251 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringExtensionLite;
|
| 252 | public const int DefaultBytesExtensionLiteFieldNumber = 75;
|
| 253 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> DefaultBytesExtensionLite;
|
| 254 | public const int DefaultNestedEnumExtensionLiteFieldNumber = 81;
|
| 255 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> DefaultNestedEnumExtensionLite;
|
| 256 | public const int DefaultForeignEnumExtensionLiteFieldNumber = 82;
|
| 257 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> DefaultForeignEnumExtensionLite;
|
| 258 | public const int DefaultImportEnumExtensionLiteFieldNumber = 83;
|
| 259 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> DefaultImportEnumExtensionLite;
|
| 260 | public const int DefaultStringPieceExtensionLiteFieldNumber = 84;
|
| 261 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringPieceExtensionLite;
|
| 262 | public const int DefaultCordExtensionLiteFieldNumber = 85;
|
| 263 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultCordExtensionLite;
|
| 264 | public const int PackedInt32ExtensionLiteFieldNumber = 90;
|
| 265 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedInt32ExtensionLite;
|
| 266 | public const int PackedInt64ExtensionLiteFieldNumber = 91;
|
| 267 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedInt64ExtensionLite;
|
| 268 | public const int PackedUint32ExtensionLiteFieldNumber = 92;
|
| 269 | [global::System.CLSCompliant(false)]
|
| 270 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedUint32ExtensionLite;
|
| 271 | public const int PackedUint64ExtensionLiteFieldNumber = 93;
|
| 272 | [global::System.CLSCompliant(false)]
|
| 273 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedUint64ExtensionLite;
|
| 274 | public const int PackedSint32ExtensionLiteFieldNumber = 94;
|
| 275 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSint32ExtensionLite;
|
| 276 | public const int PackedSint64ExtensionLiteFieldNumber = 95;
|
| 277 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSint64ExtensionLite;
|
| 278 | public const int PackedFixed32ExtensionLiteFieldNumber = 96;
|
| 279 | [global::System.CLSCompliant(false)]
|
| 280 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedFixed32ExtensionLite;
|
| 281 | public const int PackedFixed64ExtensionLiteFieldNumber = 97;
|
| 282 | [global::System.CLSCompliant(false)]
|
| 283 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedFixed64ExtensionLite;
|
| 284 | public const int PackedSfixed32ExtensionLiteFieldNumber = 98;
|
| 285 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSfixed32ExtensionLite;
|
| 286 | public const int PackedSfixed64ExtensionLiteFieldNumber = 99;
|
| 287 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSfixed64ExtensionLite;
|
| 288 | public const int PackedFloatExtensionLiteFieldNumber = 100;
|
| 289 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float> PackedFloatExtensionLite;
|
| 290 | public const int PackedDoubleExtensionLiteFieldNumber = 101;
|
| 291 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double> PackedDoubleExtensionLite;
|
| 292 | public const int PackedBoolExtensionLiteFieldNumber = 102;
|
| 293 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool> PackedBoolExtensionLite;
|
| 294 | public const int PackedEnumExtensionLiteFieldNumber = 103;
|
| 295 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumExtensionLite;
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 296 | public const int UnpackedInt32ExtensionLiteFieldNumber = 90;
|
| 297 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedInt32ExtensionLite;
|
| 298 | public const int UnpackedInt64ExtensionLiteFieldNumber = 91;
|
| 299 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedInt64ExtensionLite;
|
| 300 | public const int UnpackedUint32ExtensionLiteFieldNumber = 92;
|
| 301 | [global::System.CLSCompliant(false)]
|
| 302 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedUint32ExtensionLite;
|
| 303 | public const int UnpackedUint64ExtensionLiteFieldNumber = 93;
|
| 304 | [global::System.CLSCompliant(false)]
|
| 305 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedUint64ExtensionLite;
|
| 306 | public const int UnpackedSint32ExtensionLiteFieldNumber = 94;
|
| 307 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSint32ExtensionLite;
|
| 308 | public const int UnpackedSint64ExtensionLiteFieldNumber = 95;
|
| 309 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSint64ExtensionLite;
|
| 310 | public const int UnpackedFixed32ExtensionLiteFieldNumber = 96;
|
| 311 | [global::System.CLSCompliant(false)]
|
| 312 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedFixed32ExtensionLite;
|
| 313 | public const int UnpackedFixed64ExtensionLiteFieldNumber = 97;
|
| 314 | [global::System.CLSCompliant(false)]
|
| 315 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedFixed64ExtensionLite;
|
| 316 | public const int UnpackedSfixed32ExtensionLiteFieldNumber = 98;
|
| 317 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSfixed32ExtensionLite;
|
| 318 | public const int UnpackedSfixed64ExtensionLiteFieldNumber = 99;
|
| 319 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSfixed64ExtensionLite;
|
| 320 | public const int UnpackedFloatExtensionLiteFieldNumber = 100;
|
| 321 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float> UnpackedFloatExtensionLite;
|
| 322 | public const int UnpackedDoubleExtensionLiteFieldNumber = 101;
|
| 323 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double> UnpackedDoubleExtensionLite;
|
| 324 | public const int UnpackedBoolExtensionLiteFieldNumber = 102;
|
| 325 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool> UnpackedBoolExtensionLite;
|
| 326 | public const int UnpackedEnumExtensionLiteFieldNumber = 103;
|
| 327 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> UnpackedEnumExtensionLite;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 328 | #endregion
|
| 329 |
|
| 330 | #region Static variables
|
| 331 | #endregion
|
| 332 | #region Extensions
|
| 333 | internal static readonly object Descriptor;
|
| 334 | static UnitTestLiteProtoFile() {
|
| 335 | Descriptor = null;
|
| 336 | global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension =
|
| 337 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 338 | "protobuf_unittest.TestNestedExtensionLite.nested_extension",
|
| 339 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 340 | default(int),
|
| 341 | null,
|
| 342 | null,
|
| 343 | global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtensionFieldNumber,
|
| 344 | pbd::FieldType.Int32);
|
| 345 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite =
|
| 346 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 347 | "protobuf_unittest.optional_int32_extension_lite",
|
| 348 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 349 | default(int),
|
| 350 | null,
|
| 351 | null,
|
| 352 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLiteFieldNumber,
|
| 353 | pbd::FieldType.Int32);
|
| 354 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite =
|
| 355 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 356 | "protobuf_unittest.optional_int64_extension_lite",
|
| 357 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 358 | default(long),
|
| 359 | null,
|
| 360 | null,
|
| 361 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLiteFieldNumber,
|
| 362 | pbd::FieldType.Int64);
|
| 363 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite =
|
| 364 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 365 | "protobuf_unittest.optional_uint32_extension_lite",
|
| 366 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 367 | default(uint),
|
| 368 | null,
|
| 369 | null,
|
| 370 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLiteFieldNumber,
|
| 371 | pbd::FieldType.UInt32);
|
| 372 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite =
|
| 373 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 374 | "protobuf_unittest.optional_uint64_extension_lite",
|
| 375 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 376 | default(ulong),
|
| 377 | null,
|
| 378 | null,
|
| 379 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLiteFieldNumber,
|
| 380 | pbd::FieldType.UInt64);
|
| 381 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite =
|
| 382 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 383 | "protobuf_unittest.optional_sint32_extension_lite",
|
| 384 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 385 | default(int),
|
| 386 | null,
|
| 387 | null,
|
| 388 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLiteFieldNumber,
|
| 389 | pbd::FieldType.SInt32);
|
| 390 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite =
|
| 391 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 392 | "protobuf_unittest.optional_sint64_extension_lite",
|
| 393 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 394 | default(long),
|
| 395 | null,
|
| 396 | null,
|
| 397 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLiteFieldNumber,
|
| 398 | pbd::FieldType.SInt64);
|
| 399 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite =
|
| 400 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 401 | "protobuf_unittest.optional_fixed32_extension_lite",
|
| 402 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 403 | default(uint),
|
| 404 | null,
|
| 405 | null,
|
| 406 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLiteFieldNumber,
|
| 407 | pbd::FieldType.Fixed32);
|
| 408 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite =
|
| 409 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 410 | "protobuf_unittest.optional_fixed64_extension_lite",
|
| 411 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 412 | default(ulong),
|
| 413 | null,
|
| 414 | null,
|
| 415 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLiteFieldNumber,
|
| 416 | pbd::FieldType.Fixed64);
|
| 417 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite =
|
| 418 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 419 | "protobuf_unittest.optional_sfixed32_extension_lite",
|
| 420 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 421 | default(int),
|
| 422 | null,
|
| 423 | null,
|
| 424 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLiteFieldNumber,
|
| 425 | pbd::FieldType.SFixed32);
|
| 426 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite =
|
| 427 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 428 | "protobuf_unittest.optional_sfixed64_extension_lite",
|
| 429 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 430 | default(long),
|
| 431 | null,
|
| 432 | null,
|
| 433 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLiteFieldNumber,
|
| 434 | pbd::FieldType.SFixed64);
|
| 435 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite =
|
| 436 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 437 | "protobuf_unittest.optional_float_extension_lite",
|
| 438 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 439 | default(float),
|
| 440 | null,
|
| 441 | null,
|
| 442 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLiteFieldNumber,
|
| 443 | pbd::FieldType.Float);
|
| 444 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite =
|
| 445 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 446 | "protobuf_unittest.optional_double_extension_lite",
|
| 447 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 448 | default(double),
|
| 449 | null,
|
| 450 | null,
|
| 451 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLiteFieldNumber,
|
| 452 | pbd::FieldType.Double);
|
| 453 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite =
|
| 454 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 455 | "protobuf_unittest.optional_bool_extension_lite",
|
| 456 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 457 | default(bool),
|
| 458 | null,
|
| 459 | null,
|
| 460 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLiteFieldNumber,
|
| 461 | pbd::FieldType.Bool);
|
| 462 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite =
|
| 463 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 464 | "protobuf_unittest.optional_string_extension_lite",
|
| 465 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 466 | null,
|
| 467 | null,
|
| 468 | null,
|
| 469 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLiteFieldNumber,
|
| 470 | pbd::FieldType.String);
|
| 471 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite =
|
| 472 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 473 | "protobuf_unittest.optional_bytes_extension_lite",
|
| 474 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 475 | null,
|
| 476 | null,
|
| 477 | null,
|
| 478 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLiteFieldNumber,
|
| 479 | pbd::FieldType.Bytes);
|
| 480 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite =
|
| 481 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite>(
|
| 482 | "protobuf_unittest.optionalgroup_extension_lite",
|
| 483 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 484 | null,
|
| 485 | global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance,
|
| 486 | null,
|
| 487 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLiteFieldNumber,
|
| 488 | pbd::FieldType.Group);
|
| 489 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite =
|
| 490 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
|
| 491 | "protobuf_unittest.optional_nested_message_extension_lite",
|
| 492 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 493 | null,
|
| 494 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
|
| 495 | null,
|
| 496 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLiteFieldNumber,
|
| 497 | pbd::FieldType.Message);
|
| 498 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite =
|
| 499 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
|
| 500 | "protobuf_unittest.optional_foreign_message_extension_lite",
|
| 501 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 502 | null,
|
| 503 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
|
| 504 | null,
|
| 505 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLiteFieldNumber,
|
| 506 | pbd::FieldType.Message);
|
| 507 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite =
|
| 508 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
|
| 509 | "protobuf_unittest.optional_import_message_extension_lite",
|
| 510 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 511 | null,
|
| 512 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
|
| 513 | null,
|
| 514 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLiteFieldNumber,
|
| 515 | pbd::FieldType.Message);
|
| 516 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite =
|
| 517 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 518 | "protobuf_unittest.optional_nested_enum_extension_lite",
|
| 519 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 520 | default(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum),
|
| 521 | null,
|
| 522 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 523 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLiteFieldNumber,
|
| 524 | pbd::FieldType.Enum);
|
| 525 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite =
|
| 526 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 527 | "protobuf_unittest.optional_foreign_enum_extension_lite",
|
| 528 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 529 | default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite),
|
| 530 | null,
|
| 531 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 532 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLiteFieldNumber,
|
| 533 | pbd::FieldType.Enum);
|
| 534 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite =
|
| 535 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 536 | "protobuf_unittest.optional_import_enum_extension_lite",
|
| 537 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 538 | default(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite),
|
| 539 | null,
|
| 540 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 541 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLiteFieldNumber,
|
| 542 | pbd::FieldType.Enum);
|
| 543 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite =
|
| 544 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 545 | "protobuf_unittest.optional_string_piece_extension_lite",
|
| 546 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 547 | null,
|
| 548 | null,
|
| 549 | null,
|
| 550 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLiteFieldNumber,
|
| 551 | pbd::FieldType.String);
|
| 552 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite =
|
| 553 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 554 | "protobuf_unittest.optional_cord_extension_lite",
|
| 555 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 556 | null,
|
| 557 | null,
|
| 558 | null,
|
| 559 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLiteFieldNumber,
|
| 560 | pbd::FieldType.String);
|
| 561 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite =
|
| 562 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 563 | "protobuf_unittest.repeated_int32_extension_lite",
|
| 564 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 565 | null,
|
| 566 | null,
|
| 567 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLiteFieldNumber,
|
| 568 | pbd::FieldType.Int32,
|
| 569 | false);
|
| 570 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite =
|
| 571 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 572 | "protobuf_unittest.repeated_int64_extension_lite",
|
| 573 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 574 | null,
|
| 575 | null,
|
| 576 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLiteFieldNumber,
|
| 577 | pbd::FieldType.Int64,
|
| 578 | false);
|
| 579 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite =
|
| 580 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 581 | "protobuf_unittest.repeated_uint32_extension_lite",
|
| 582 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 583 | null,
|
| 584 | null,
|
| 585 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLiteFieldNumber,
|
| 586 | pbd::FieldType.UInt32,
|
| 587 | false);
|
| 588 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite =
|
| 589 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 590 | "protobuf_unittest.repeated_uint64_extension_lite",
|
| 591 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 592 | null,
|
| 593 | null,
|
| 594 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLiteFieldNumber,
|
| 595 | pbd::FieldType.UInt64,
|
| 596 | false);
|
| 597 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite =
|
| 598 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 599 | "protobuf_unittest.repeated_sint32_extension_lite",
|
| 600 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 601 | null,
|
| 602 | null,
|
| 603 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLiteFieldNumber,
|
| 604 | pbd::FieldType.SInt32,
|
| 605 | false);
|
| 606 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite =
|
| 607 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 608 | "protobuf_unittest.repeated_sint64_extension_lite",
|
| 609 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 610 | null,
|
| 611 | null,
|
| 612 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLiteFieldNumber,
|
| 613 | pbd::FieldType.SInt64,
|
| 614 | false);
|
| 615 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite =
|
| 616 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 617 | "protobuf_unittest.repeated_fixed32_extension_lite",
|
| 618 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 619 | null,
|
| 620 | null,
|
| 621 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLiteFieldNumber,
|
| 622 | pbd::FieldType.Fixed32,
|
| 623 | false);
|
| 624 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite =
|
| 625 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 626 | "protobuf_unittest.repeated_fixed64_extension_lite",
|
| 627 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 628 | null,
|
| 629 | null,
|
| 630 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLiteFieldNumber,
|
| 631 | pbd::FieldType.Fixed64,
|
| 632 | false);
|
| 633 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite =
|
| 634 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 635 | "protobuf_unittest.repeated_sfixed32_extension_lite",
|
| 636 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 637 | null,
|
| 638 | null,
|
| 639 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLiteFieldNumber,
|
| 640 | pbd::FieldType.SFixed32,
|
| 641 | false);
|
| 642 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite =
|
| 643 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 644 | "protobuf_unittest.repeated_sfixed64_extension_lite",
|
| 645 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 646 | null,
|
| 647 | null,
|
| 648 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLiteFieldNumber,
|
| 649 | pbd::FieldType.SFixed64,
|
| 650 | false);
|
| 651 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite =
|
| 652 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 653 | "protobuf_unittest.repeated_float_extension_lite",
|
| 654 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 655 | null,
|
| 656 | null,
|
| 657 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLiteFieldNumber,
|
| 658 | pbd::FieldType.Float,
|
| 659 | false);
|
| 660 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite =
|
| 661 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 662 | "protobuf_unittest.repeated_double_extension_lite",
|
| 663 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 664 | null,
|
| 665 | null,
|
| 666 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLiteFieldNumber,
|
| 667 | pbd::FieldType.Double,
|
| 668 | false);
|
| 669 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite =
|
| 670 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 671 | "protobuf_unittest.repeated_bool_extension_lite",
|
| 672 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 673 | null,
|
| 674 | null,
|
| 675 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLiteFieldNumber,
|
| 676 | pbd::FieldType.Bool,
|
| 677 | false);
|
| 678 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite =
|
| 679 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 680 | "protobuf_unittest.repeated_string_extension_lite",
|
| 681 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 682 | null,
|
| 683 | null,
|
| 684 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLiteFieldNumber,
|
| 685 | pbd::FieldType.String,
|
| 686 | false);
|
| 687 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite =
|
| 688 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 689 | "protobuf_unittest.repeated_bytes_extension_lite",
|
| 690 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 691 | null,
|
| 692 | null,
|
| 693 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLiteFieldNumber,
|
| 694 | pbd::FieldType.Bytes,
|
| 695 | false);
|
| 696 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite =
|
| 697 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite>(
|
| 698 | "protobuf_unittest.repeatedgroup_extension_lite",
|
| 699 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 700 | global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance,
|
| 701 | null,
|
| 702 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLiteFieldNumber,
|
| 703 | pbd::FieldType.Group,
|
| 704 | false);
|
| 705 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite =
|
| 706 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
|
| 707 | "protobuf_unittest.repeated_nested_message_extension_lite",
|
| 708 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 709 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
|
| 710 | null,
|
| 711 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLiteFieldNumber,
|
| 712 | pbd::FieldType.Message,
|
| 713 | false);
|
| 714 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite =
|
| 715 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
|
| 716 | "protobuf_unittest.repeated_foreign_message_extension_lite",
|
| 717 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 718 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
|
| 719 | null,
|
| 720 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLiteFieldNumber,
|
| 721 | pbd::FieldType.Message,
|
| 722 | false);
|
| 723 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite =
|
| 724 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
|
| 725 | "protobuf_unittest.repeated_import_message_extension_lite",
|
| 726 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 727 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
|
| 728 | null,
|
| 729 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLiteFieldNumber,
|
| 730 | pbd::FieldType.Message,
|
| 731 | false);
|
| 732 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite =
|
| 733 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 734 | "protobuf_unittest.repeated_nested_enum_extension_lite",
|
| 735 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 736 | null,
|
| 737 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 738 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLiteFieldNumber,
|
| 739 | pbd::FieldType.Enum,
|
| 740 | false);
|
| 741 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite =
|
| 742 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 743 | "protobuf_unittest.repeated_foreign_enum_extension_lite",
|
| 744 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 745 | null,
|
| 746 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 747 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLiteFieldNumber,
|
| 748 | pbd::FieldType.Enum,
|
| 749 | false);
|
| 750 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite =
|
| 751 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 752 | "protobuf_unittest.repeated_import_enum_extension_lite",
|
| 753 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 754 | null,
|
| 755 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 756 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLiteFieldNumber,
|
| 757 | pbd::FieldType.Enum,
|
| 758 | false);
|
| 759 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite =
|
| 760 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 761 | "protobuf_unittest.repeated_string_piece_extension_lite",
|
| 762 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 763 | null,
|
| 764 | null,
|
| 765 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLiteFieldNumber,
|
| 766 | pbd::FieldType.String,
|
| 767 | false);
|
| 768 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite =
|
| 769 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 770 | "protobuf_unittest.repeated_cord_extension_lite",
|
| 771 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 772 | null,
|
| 773 | null,
|
| 774 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLiteFieldNumber,
|
| 775 | pbd::FieldType.String,
|
| 776 | false);
|
| 777 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite =
|
| 778 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 779 | "protobuf_unittest.default_int32_extension_lite",
|
| 780 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 781 | 41,
|
| 782 | null,
|
| 783 | null,
|
| 784 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLiteFieldNumber,
|
| 785 | pbd::FieldType.Int32);
|
| 786 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite =
|
| 787 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 788 | "protobuf_unittest.default_int64_extension_lite",
|
| 789 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 790 | 42L,
|
| 791 | null,
|
| 792 | null,
|
| 793 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLiteFieldNumber,
|
| 794 | pbd::FieldType.Int64);
|
| 795 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite =
|
| 796 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 797 | "protobuf_unittest.default_uint32_extension_lite",
|
| 798 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 799 | 43,
|
| 800 | null,
|
| 801 | null,
|
| 802 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLiteFieldNumber,
|
| 803 | pbd::FieldType.UInt32);
|
| 804 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite =
|
| 805 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 806 | "protobuf_unittest.default_uint64_extension_lite",
|
| 807 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 808 | 44UL,
|
| 809 | null,
|
| 810 | null,
|
| 811 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLiteFieldNumber,
|
| 812 | pbd::FieldType.UInt64);
|
| 813 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite =
|
| 814 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 815 | "protobuf_unittest.default_sint32_extension_lite",
|
| 816 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 817 | -45,
|
| 818 | null,
|
| 819 | null,
|
| 820 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLiteFieldNumber,
|
| 821 | pbd::FieldType.SInt32);
|
| 822 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite =
|
| 823 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 824 | "protobuf_unittest.default_sint64_extension_lite",
|
| 825 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 826 | 46,
|
| 827 | null,
|
| 828 | null,
|
| 829 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLiteFieldNumber,
|
| 830 | pbd::FieldType.SInt64);
|
| 831 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite =
|
| 832 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 833 | "protobuf_unittest.default_fixed32_extension_lite",
|
| 834 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 835 | 47,
|
| 836 | null,
|
| 837 | null,
|
| 838 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLiteFieldNumber,
|
| 839 | pbd::FieldType.Fixed32);
|
| 840 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite =
|
| 841 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 842 | "protobuf_unittest.default_fixed64_extension_lite",
|
| 843 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 844 | 48,
|
| 845 | null,
|
| 846 | null,
|
| 847 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLiteFieldNumber,
|
| 848 | pbd::FieldType.Fixed64);
|
| 849 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite =
|
| 850 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 851 | "protobuf_unittest.default_sfixed32_extension_lite",
|
| 852 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 853 | 49,
|
| 854 | null,
|
| 855 | null,
|
| 856 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLiteFieldNumber,
|
| 857 | pbd::FieldType.SFixed32);
|
| 858 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite =
|
| 859 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 860 | "protobuf_unittest.default_sfixed64_extension_lite",
|
| 861 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 862 | -50,
|
| 863 | null,
|
| 864 | null,
|
| 865 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLiteFieldNumber,
|
| 866 | pbd::FieldType.SFixed64);
|
| 867 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite =
|
| 868 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 869 | "protobuf_unittest.default_float_extension_lite",
|
| 870 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 871 | 51.5F,
|
| 872 | null,
|
| 873 | null,
|
| 874 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLiteFieldNumber,
|
| 875 | pbd::FieldType.Float);
|
| 876 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite =
|
| 877 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 878 | "protobuf_unittest.default_double_extension_lite",
|
| 879 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 880 | 52000D,
|
| 881 | null,
|
| 882 | null,
|
| 883 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLiteFieldNumber,
|
| 884 | pbd::FieldType.Double);
|
| 885 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite =
|
| 886 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 887 | "protobuf_unittest.default_bool_extension_lite",
|
| 888 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 889 | true,
|
| 890 | null,
|
| 891 | null,
|
| 892 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLiteFieldNumber,
|
| 893 | pbd::FieldType.Bool);
|
| 894 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite =
|
| 895 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 896 | "protobuf_unittest.default_string_extension_lite",
|
| 897 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 898 | "hello",
|
| 899 | null,
|
| 900 | null,
|
| 901 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLiteFieldNumber,
|
| 902 | pbd::FieldType.String);
|
| 903 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite =
|
| 904 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 905 | "protobuf_unittest.default_bytes_extension_lite",
|
| 906 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 907 | ByteString.FromBase64("d29ybGQ="),
|
| 908 | null,
|
| 909 | null,
|
| 910 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLiteFieldNumber,
|
| 911 | pbd::FieldType.Bytes);
|
| 912 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite =
|
| 913 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 914 | "protobuf_unittest.default_nested_enum_extension_lite",
|
| 915 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 916 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR,
|
| 917 | null,
|
| 918 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 919 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLiteFieldNumber,
|
| 920 | pbd::FieldType.Enum);
|
| 921 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite =
|
| 922 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 923 | "protobuf_unittest.default_foreign_enum_extension_lite",
|
| 924 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 925 | global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR,
|
| 926 | null,
|
| 927 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 928 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLiteFieldNumber,
|
| 929 | pbd::FieldType.Enum);
|
| 930 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite =
|
| 931 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 932 | "protobuf_unittest.default_import_enum_extension_lite",
|
| 933 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 934 | global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR,
|
| 935 | null,
|
| 936 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 937 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLiteFieldNumber,
|
| 938 | pbd::FieldType.Enum);
|
| 939 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite =
|
| 940 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 941 | "protobuf_unittest.default_string_piece_extension_lite",
|
| 942 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 943 | "abc",
|
| 944 | null,
|
| 945 | null,
|
| 946 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLiteFieldNumber,
|
| 947 | pbd::FieldType.String);
|
| 948 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite =
|
| 949 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 950 | "protobuf_unittest.default_cord_extension_lite",
|
| 951 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 952 | "123",
|
| 953 | null,
|
| 954 | null,
|
| 955 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLiteFieldNumber,
|
| 956 | pbd::FieldType.String);
|
| 957 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite =
|
| 958 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 959 | "protobuf_unittest.packed_int32_extension_lite",
|
| 960 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 961 | null,
|
| 962 | null,
|
| 963 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLiteFieldNumber,
|
| 964 | pbd::FieldType.Int32,
|
| 965 | true);
|
| 966 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite =
|
| 967 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 968 | "protobuf_unittest.packed_int64_extension_lite",
|
| 969 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 970 | null,
|
| 971 | null,
|
| 972 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLiteFieldNumber,
|
| 973 | pbd::FieldType.Int64,
|
| 974 | true);
|
| 975 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite =
|
| 976 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
|
| 977 | "protobuf_unittest.packed_uint32_extension_lite",
|
| 978 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 979 | null,
|
| 980 | null,
|
| 981 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLiteFieldNumber,
|
| 982 | pbd::FieldType.UInt32,
|
| 983 | true);
|
| 984 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite =
|
| 985 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
|
| 986 | "protobuf_unittest.packed_uint64_extension_lite",
|
| 987 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 988 | null,
|
| 989 | null,
|
| 990 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLiteFieldNumber,
|
| 991 | pbd::FieldType.UInt64,
|
| 992 | true);
|
| 993 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite =
|
| 994 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 995 | "protobuf_unittest.packed_sint32_extension_lite",
|
| 996 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 997 | null,
|
| 998 | null,
|
| 999 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLiteFieldNumber,
|
| 1000 | pbd::FieldType.SInt32,
|
| 1001 | true);
|
| 1002 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite =
|
| 1003 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 1004 | "protobuf_unittest.packed_sint64_extension_lite",
|
| 1005 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1006 | null,
|
| 1007 | null,
|
| 1008 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLiteFieldNumber,
|
| 1009 | pbd::FieldType.SInt64,
|
| 1010 | true);
|
| 1011 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite =
|
| 1012 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
|
| 1013 | "protobuf_unittest.packed_fixed32_extension_lite",
|
| 1014 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1015 | null,
|
| 1016 | null,
|
| 1017 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLiteFieldNumber,
|
| 1018 | pbd::FieldType.Fixed32,
|
| 1019 | true);
|
| 1020 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite =
|
| 1021 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
|
| 1022 | "protobuf_unittest.packed_fixed64_extension_lite",
|
| 1023 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1024 | null,
|
| 1025 | null,
|
| 1026 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLiteFieldNumber,
|
| 1027 | pbd::FieldType.Fixed64,
|
| 1028 | true);
|
| 1029 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite =
|
| 1030 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 1031 | "protobuf_unittest.packed_sfixed32_extension_lite",
|
| 1032 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1033 | null,
|
| 1034 | null,
|
| 1035 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLiteFieldNumber,
|
| 1036 | pbd::FieldType.SFixed32,
|
| 1037 | true);
|
| 1038 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite =
|
| 1039 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 1040 | "protobuf_unittest.packed_sfixed64_extension_lite",
|
| 1041 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1042 | null,
|
| 1043 | null,
|
| 1044 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLiteFieldNumber,
|
| 1045 | pbd::FieldType.SFixed64,
|
| 1046 | true);
|
| 1047 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite =
|
| 1048 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float>(
|
| 1049 | "protobuf_unittest.packed_float_extension_lite",
|
| 1050 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1051 | null,
|
| 1052 | null,
|
| 1053 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLiteFieldNumber,
|
| 1054 | pbd::FieldType.Float,
|
| 1055 | true);
|
| 1056 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite =
|
| 1057 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double>(
|
| 1058 | "protobuf_unittest.packed_double_extension_lite",
|
| 1059 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1060 | null,
|
| 1061 | null,
|
| 1062 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLiteFieldNumber,
|
| 1063 | pbd::FieldType.Double,
|
| 1064 | true);
|
| 1065 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite =
|
| 1066 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool>(
|
| 1067 | "protobuf_unittest.packed_bool_extension_lite",
|
| 1068 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1069 | null,
|
| 1070 | null,
|
| 1071 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLiteFieldNumber,
|
| 1072 | pbd::FieldType.Bool,
|
| 1073 | true);
|
| 1074 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite =
|
| 1075 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 1076 | "protobuf_unittest.packed_enum_extension_lite",
|
| 1077 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1078 | null,
|
| 1079 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 1080 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLiteFieldNumber,
|
| 1081 | pbd::FieldType.Enum,
|
| 1082 | true);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 1083 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLite =
|
| 1084 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
|
| 1085 | "protobuf_unittest.unpacked_int32_extension_lite",
|
| 1086 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1087 | null,
|
| 1088 | null,
|
| 1089 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLiteFieldNumber,
|
| 1090 | pbd::FieldType.Int32,
|
| 1091 | false);
|
| 1092 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLite =
|
| 1093 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
|
| 1094 | "protobuf_unittest.unpacked_int64_extension_lite",
|
| 1095 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1096 | null,
|
| 1097 | null,
|
| 1098 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLiteFieldNumber,
|
| 1099 | pbd::FieldType.Int64,
|
| 1100 | false);
|
| 1101 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLite =
|
| 1102 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
|
| 1103 | "protobuf_unittest.unpacked_uint32_extension_lite",
|
| 1104 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1105 | null,
|
| 1106 | null,
|
| 1107 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLiteFieldNumber,
|
| 1108 | pbd::FieldType.UInt32,
|
| 1109 | false);
|
| 1110 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLite =
|
| 1111 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
|
| 1112 | "protobuf_unittest.unpacked_uint64_extension_lite",
|
| 1113 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1114 | null,
|
| 1115 | null,
|
| 1116 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLiteFieldNumber,
|
| 1117 | pbd::FieldType.UInt64,
|
| 1118 | false);
|
| 1119 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLite =
|
| 1120 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
|
| 1121 | "protobuf_unittest.unpacked_sint32_extension_lite",
|
| 1122 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1123 | null,
|
| 1124 | null,
|
| 1125 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLiteFieldNumber,
|
| 1126 | pbd::FieldType.SInt32,
|
| 1127 | false);
|
| 1128 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLite =
|
| 1129 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
|
| 1130 | "protobuf_unittest.unpacked_sint64_extension_lite",
|
| 1131 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1132 | null,
|
| 1133 | null,
|
| 1134 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLiteFieldNumber,
|
| 1135 | pbd::FieldType.SInt64,
|
| 1136 | false);
|
| 1137 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLite =
|
| 1138 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
|
| 1139 | "protobuf_unittest.unpacked_fixed32_extension_lite",
|
| 1140 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1141 | null,
|
| 1142 | null,
|
| 1143 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLiteFieldNumber,
|
| 1144 | pbd::FieldType.Fixed32,
|
| 1145 | false);
|
| 1146 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLite =
|
| 1147 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
|
| 1148 | "protobuf_unittest.unpacked_fixed64_extension_lite",
|
| 1149 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1150 | null,
|
| 1151 | null,
|
| 1152 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLiteFieldNumber,
|
| 1153 | pbd::FieldType.Fixed64,
|
| 1154 | false);
|
| 1155 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLite =
|
| 1156 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
|
| 1157 | "protobuf_unittest.unpacked_sfixed32_extension_lite",
|
| 1158 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1159 | null,
|
| 1160 | null,
|
| 1161 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLiteFieldNumber,
|
| 1162 | pbd::FieldType.SFixed32,
|
| 1163 | false);
|
| 1164 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLite =
|
| 1165 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
|
| 1166 | "protobuf_unittest.unpacked_sfixed64_extension_lite",
|
| 1167 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1168 | null,
|
| 1169 | null,
|
| 1170 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLiteFieldNumber,
|
| 1171 | pbd::FieldType.SFixed64,
|
| 1172 | false);
|
| 1173 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLite =
|
| 1174 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float>(
|
| 1175 | "protobuf_unittest.unpacked_float_extension_lite",
|
| 1176 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1177 | null,
|
| 1178 | null,
|
| 1179 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLiteFieldNumber,
|
| 1180 | pbd::FieldType.Float,
|
| 1181 | false);
|
| 1182 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLite =
|
| 1183 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double>(
|
| 1184 | "protobuf_unittest.unpacked_double_extension_lite",
|
| 1185 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1186 | null,
|
| 1187 | null,
|
| 1188 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLiteFieldNumber,
|
| 1189 | pbd::FieldType.Double,
|
| 1190 | false);
|
| 1191 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLite =
|
| 1192 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool>(
|
| 1193 | "protobuf_unittest.unpacked_bool_extension_lite",
|
| 1194 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1195 | null,
|
| 1196 | null,
|
| 1197 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLiteFieldNumber,
|
| 1198 | pbd::FieldType.Bool,
|
| 1199 | false);
|
| 1200 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLite =
|
| 1201 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 1202 | "protobuf_unittest.unpacked_enum_extension_lite",
|
| 1203 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1204 | null,
|
| 1205 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 1206 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLiteFieldNumber,
|
| 1207 | pbd::FieldType.Enum,
|
| 1208 | false);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1209 | }
|
| 1210 | #endregion
|
| 1211 |
|
| 1212 | }
|
| 1213 | #region Enums
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1214 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1215 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1216 | public enum ForeignEnumLite {
|
| 1217 | FOREIGN_LITE_FOO = 4,
|
| 1218 | FOREIGN_LITE_BAR = 5,
|
| 1219 | FOREIGN_LITE_BAZ = 6,
|
| 1220 | }
|
| 1221 |
|
| 1222 | #endregion
|
| 1223 |
|
| 1224 | #region Messages
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1225 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1226 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1227 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1228 | public sealed partial class TestAllTypesLite : pb::GeneratedMessageLite<TestAllTypesLite, TestAllTypesLite.Builder> {
|
| 1229 | private static readonly TestAllTypesLite defaultInstance = new Builder().BuildPartial();
|
| 1230 | public static TestAllTypesLite DefaultInstance {
|
| 1231 | get { return defaultInstance; }
|
| 1232 | }
|
| 1233 |
|
| 1234 | public override TestAllTypesLite DefaultInstanceForType {
|
| 1235 | get { return defaultInstance; }
|
| 1236 | }
|
| 1237 |
|
| 1238 | protected override TestAllTypesLite ThisMessage {
|
| 1239 | get { return this; }
|
| 1240 | }
|
| 1241 |
|
| 1242 | #region Nested types
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1243 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1244 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1245 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1246 | public static class Types {
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1247 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1248 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1249 | public enum NestedEnum {
|
| 1250 | FOO = 1,
|
| 1251 | BAR = 2,
|
| 1252 | BAZ = 3,
|
| 1253 | }
|
| 1254 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1255 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1256 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1257 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1258 | public sealed partial class NestedMessage : pb::GeneratedMessageLite<NestedMessage, NestedMessage.Builder> {
|
| 1259 | private static readonly NestedMessage defaultInstance = new Builder().BuildPartial();
|
| 1260 | public static NestedMessage DefaultInstance {
|
| 1261 | get { return defaultInstance; }
|
| 1262 | }
|
| 1263 |
|
| 1264 | public override NestedMessage DefaultInstanceForType {
|
| 1265 | get { return defaultInstance; }
|
| 1266 | }
|
| 1267 |
|
| 1268 | protected override NestedMessage ThisMessage {
|
| 1269 | get { return this; }
|
| 1270 | }
|
| 1271 |
|
| 1272 | public const int BbFieldNumber = 1;
|
| 1273 | private bool hasBb;
|
| 1274 | private int bb_ = 0;
|
| 1275 | public bool HasBb {
|
| 1276 | get { return hasBb; }
|
| 1277 | }
|
| 1278 | public int Bb {
|
| 1279 | get { return bb_; }
|
| 1280 | }
|
| 1281 |
|
| 1282 | public override bool IsInitialized {
|
| 1283 | get {
|
| 1284 | return true;
|
| 1285 | }
|
| 1286 | }
|
| 1287 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1288 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1289 | int size = SerializedSize;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1290 | if (hasBb) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 1291 | output.WriteInt32(1, "bb", Bb);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1292 | }
|
| 1293 | }
|
| 1294 |
|
| 1295 | private int memoizedSerializedSize = -1;
|
| 1296 | public override int SerializedSize {
|
| 1297 | get {
|
| 1298 | int size = memoizedSerializedSize;
|
| 1299 | if (size != -1) return size;
|
| 1300 |
|
| 1301 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1302 | if (hasBb) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1303 | size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
|
| 1304 | }
|
| 1305 | memoizedSerializedSize = size;
|
| 1306 | return size;
|
| 1307 | }
|
| 1308 | }
|
| 1309 |
|
| 1310 | #region Lite runtime methods
|
| 1311 | public override int GetHashCode() {
|
| 1312 | int hash = GetType().GetHashCode();
|
| 1313 | if (hasBb) hash ^= bb_.GetHashCode();
|
| 1314 | return hash;
|
| 1315 | }
|
| 1316 |
|
| 1317 | public override bool Equals(object obj) {
|
| 1318 | NestedMessage other = obj as NestedMessage;
|
| 1319 | if (other == null) return false;
|
| 1320 | if (hasBb != other.hasBb || (hasBb && !bb_.Equals(other.bb_))) return false;
|
| 1321 | return true;
|
| 1322 | }
|
| 1323 |
|
| 1324 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1325 | PrintField("bb", hasBb, bb_, writer);
|
| 1326 | }
|
| 1327 | #endregion
|
| 1328 |
|
| 1329 | public static NestedMessage ParseFrom(pb::ByteString data) {
|
| 1330 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1331 | }
|
| 1332 | public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1333 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1334 | }
|
| 1335 | public static NestedMessage ParseFrom(byte[] data) {
|
| 1336 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1337 | }
|
| 1338 | public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1339 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1340 | }
|
| 1341 | public static NestedMessage ParseFrom(global::System.IO.Stream input) {
|
| 1342 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1343 | }
|
| 1344 | public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1345 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1346 | }
|
| 1347 | public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1348 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1349 | }
|
| 1350 | public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1351 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1352 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1353 | public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1354 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1355 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1356 | public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1357 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1358 | }
|
| 1359 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1360 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1361 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1362 | public static Builder CreateBuilder(NestedMessage prototype) {
|
| 1363 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1364 | }
|
| 1365 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1366 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1367 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1368 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1369 | public sealed partial class Builder : pb::GeneratedBuilderLite<NestedMessage, Builder> {
|
| 1370 | protected override Builder ThisBuilder {
|
| 1371 | get { return this; }
|
| 1372 | }
|
| 1373 | public Builder() {}
|
| 1374 |
|
| 1375 | NestedMessage result = new NestedMessage();
|
| 1376 |
|
| 1377 | protected override NestedMessage MessageBeingBuilt {
|
| 1378 | get { return result; }
|
| 1379 | }
|
| 1380 |
|
| 1381 | public override Builder Clear() {
|
| 1382 | result = new NestedMessage();
|
| 1383 | return this;
|
| 1384 | }
|
| 1385 |
|
| 1386 | public override Builder Clone() {
|
| 1387 | return new Builder().MergeFrom(result);
|
| 1388 | }
|
| 1389 |
|
| 1390 | public override NestedMessage DefaultInstanceForType {
|
| 1391 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; }
|
| 1392 | }
|
| 1393 |
|
| 1394 | public override NestedMessage BuildPartial() {
|
| 1395 | if (result == null) {
|
| 1396 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1397 | }
|
| 1398 | NestedMessage returnMe = result;
|
| 1399 | result = null;
|
| 1400 | return returnMe;
|
| 1401 | }
|
| 1402 |
|
| 1403 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1404 | if (other is NestedMessage) {
|
| 1405 | return MergeFrom((NestedMessage) other);
|
| 1406 | } else {
|
| 1407 | base.MergeFrom(other);
|
| 1408 | return this;
|
| 1409 | }
|
| 1410 | }
|
| 1411 |
|
| 1412 | public override Builder MergeFrom(NestedMessage other) {
|
| 1413 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) return this;
|
| 1414 | if (other.HasBb) {
|
| 1415 | Bb = other.Bb;
|
| 1416 | }
|
| 1417 | return this;
|
| 1418 | }
|
| 1419 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1420 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1421 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1422 | }
|
| 1423 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1424 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1425 | uint tag;
|
| 1426 | string field_name;
|
| 1427 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1428 | switch (tag) {
|
| 1429 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1430 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1431 | }
|
| 1432 | default: {
|
| 1433 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1434 | return this;
|
| 1435 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1436 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1437 | break;
|
| 1438 | }
|
| 1439 | case 8: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1440 | result.hasBb |= input.ReadInt32(ref result.bb_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1441 | break;
|
| 1442 | }
|
| 1443 | }
|
| 1444 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1445 |
|
| 1446 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1447 | }
|
| 1448 |
|
| 1449 |
|
| 1450 | public bool HasBb {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1451 | get { return result.hasBb; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1452 | }
|
| 1453 | public int Bb {
|
| 1454 | get { return result.Bb; }
|
| 1455 | set { SetBb(value); }
|
| 1456 | }
|
| 1457 | public Builder SetBb(int value) {
|
| 1458 | result.hasBb = true;
|
| 1459 | result.bb_ = value;
|
| 1460 | return this;
|
| 1461 | }
|
| 1462 | public Builder ClearBb() {
|
| 1463 | result.hasBb = false;
|
| 1464 | result.bb_ = 0;
|
| 1465 | return this;
|
| 1466 | }
|
| 1467 | }
|
| 1468 | static NestedMessage() {
|
| 1469 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1470 | }
|
| 1471 | }
|
| 1472 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1473 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1474 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1475 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1476 | public sealed partial class OptionalGroup : pb::GeneratedMessageLite<OptionalGroup, OptionalGroup.Builder> {
|
| 1477 | private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial();
|
| 1478 | public static OptionalGroup DefaultInstance {
|
| 1479 | get { return defaultInstance; }
|
| 1480 | }
|
| 1481 |
|
| 1482 | public override OptionalGroup DefaultInstanceForType {
|
| 1483 | get { return defaultInstance; }
|
| 1484 | }
|
| 1485 |
|
| 1486 | protected override OptionalGroup ThisMessage {
|
| 1487 | get { return this; }
|
| 1488 | }
|
| 1489 |
|
| 1490 | public const int AFieldNumber = 17;
|
| 1491 | private bool hasA;
|
| 1492 | private int a_ = 0;
|
| 1493 | public bool HasA {
|
| 1494 | get { return hasA; }
|
| 1495 | }
|
| 1496 | public int A {
|
| 1497 | get { return a_; }
|
| 1498 | }
|
| 1499 |
|
| 1500 | public override bool IsInitialized {
|
| 1501 | get {
|
| 1502 | return true;
|
| 1503 | }
|
| 1504 | }
|
| 1505 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1506 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1507 | int size = SerializedSize;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1508 | if (hasA) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 1509 | output.WriteInt32(17, "a", A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1510 | }
|
| 1511 | }
|
| 1512 |
|
| 1513 | private int memoizedSerializedSize = -1;
|
| 1514 | public override int SerializedSize {
|
| 1515 | get {
|
| 1516 | int size = memoizedSerializedSize;
|
| 1517 | if (size != -1) return size;
|
| 1518 |
|
| 1519 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1520 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1521 | size += pb::CodedOutputStream.ComputeInt32Size(17, A);
|
| 1522 | }
|
| 1523 | memoizedSerializedSize = size;
|
| 1524 | return size;
|
| 1525 | }
|
| 1526 | }
|
| 1527 |
|
| 1528 | #region Lite runtime methods
|
| 1529 | public override int GetHashCode() {
|
| 1530 | int hash = GetType().GetHashCode();
|
| 1531 | if (hasA) hash ^= a_.GetHashCode();
|
| 1532 | return hash;
|
| 1533 | }
|
| 1534 |
|
| 1535 | public override bool Equals(object obj) {
|
| 1536 | OptionalGroup other = obj as OptionalGroup;
|
| 1537 | if (other == null) return false;
|
| 1538 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 1539 | return true;
|
| 1540 | }
|
| 1541 |
|
| 1542 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1543 | PrintField("a", hasA, a_, writer);
|
| 1544 | }
|
| 1545 | #endregion
|
| 1546 |
|
| 1547 | public static OptionalGroup ParseFrom(pb::ByteString data) {
|
| 1548 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1549 | }
|
| 1550 | public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1551 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1552 | }
|
| 1553 | public static OptionalGroup ParseFrom(byte[] data) {
|
| 1554 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1555 | }
|
| 1556 | public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1557 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1558 | }
|
| 1559 | public static OptionalGroup ParseFrom(global::System.IO.Stream input) {
|
| 1560 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1561 | }
|
| 1562 | public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1563 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1564 | }
|
| 1565 | public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1566 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1567 | }
|
| 1568 | public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1569 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1570 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1571 | public static OptionalGroup ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1572 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1573 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1574 | public static OptionalGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1575 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1576 | }
|
| 1577 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1578 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1579 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1580 | public static Builder CreateBuilder(OptionalGroup prototype) {
|
| 1581 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1582 | }
|
| 1583 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1584 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1585 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1586 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1587 | public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup, Builder> {
|
| 1588 | protected override Builder ThisBuilder {
|
| 1589 | get { return this; }
|
| 1590 | }
|
| 1591 | public Builder() {}
|
| 1592 |
|
| 1593 | OptionalGroup result = new OptionalGroup();
|
| 1594 |
|
| 1595 | protected override OptionalGroup MessageBeingBuilt {
|
| 1596 | get { return result; }
|
| 1597 | }
|
| 1598 |
|
| 1599 | public override Builder Clear() {
|
| 1600 | result = new OptionalGroup();
|
| 1601 | return this;
|
| 1602 | }
|
| 1603 |
|
| 1604 | public override Builder Clone() {
|
| 1605 | return new Builder().MergeFrom(result);
|
| 1606 | }
|
| 1607 |
|
| 1608 | public override OptionalGroup DefaultInstanceForType {
|
| 1609 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; }
|
| 1610 | }
|
| 1611 |
|
| 1612 | public override OptionalGroup BuildPartial() {
|
| 1613 | if (result == null) {
|
| 1614 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1615 | }
|
| 1616 | OptionalGroup returnMe = result;
|
| 1617 | result = null;
|
| 1618 | return returnMe;
|
| 1619 | }
|
| 1620 |
|
| 1621 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1622 | if (other is OptionalGroup) {
|
| 1623 | return MergeFrom((OptionalGroup) other);
|
| 1624 | } else {
|
| 1625 | base.MergeFrom(other);
|
| 1626 | return this;
|
| 1627 | }
|
| 1628 | }
|
| 1629 |
|
| 1630 | public override Builder MergeFrom(OptionalGroup other) {
|
| 1631 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) return this;
|
| 1632 | if (other.HasA) {
|
| 1633 | A = other.A;
|
| 1634 | }
|
| 1635 | return this;
|
| 1636 | }
|
| 1637 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1638 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1639 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1640 | }
|
| 1641 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1642 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1643 | uint tag;
|
| 1644 | string field_name;
|
| 1645 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1646 | switch (tag) {
|
| 1647 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1648 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1649 | }
|
| 1650 | default: {
|
| 1651 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1652 | return this;
|
| 1653 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1654 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1655 | break;
|
| 1656 | }
|
| 1657 | case 136: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1658 | result.hasA |= input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1659 | break;
|
| 1660 | }
|
| 1661 | }
|
| 1662 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1663 |
|
| 1664 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1665 | }
|
| 1666 |
|
| 1667 |
|
| 1668 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1669 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1670 | }
|
| 1671 | public int A {
|
| 1672 | get { return result.A; }
|
| 1673 | set { SetA(value); }
|
| 1674 | }
|
| 1675 | public Builder SetA(int value) {
|
| 1676 | result.hasA = true;
|
| 1677 | result.a_ = value;
|
| 1678 | return this;
|
| 1679 | }
|
| 1680 | public Builder ClearA() {
|
| 1681 | result.hasA = false;
|
| 1682 | result.a_ = 0;
|
| 1683 | return this;
|
| 1684 | }
|
| 1685 | }
|
| 1686 | static OptionalGroup() {
|
| 1687 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1688 | }
|
| 1689 | }
|
| 1690 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1691 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1692 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1693 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1694 | public sealed partial class RepeatedGroup : pb::GeneratedMessageLite<RepeatedGroup, RepeatedGroup.Builder> {
|
| 1695 | private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial();
|
| 1696 | public static RepeatedGroup DefaultInstance {
|
| 1697 | get { return defaultInstance; }
|
| 1698 | }
|
| 1699 |
|
| 1700 | public override RepeatedGroup DefaultInstanceForType {
|
| 1701 | get { return defaultInstance; }
|
| 1702 | }
|
| 1703 |
|
| 1704 | protected override RepeatedGroup ThisMessage {
|
| 1705 | get { return this; }
|
| 1706 | }
|
| 1707 |
|
| 1708 | public const int AFieldNumber = 47;
|
| 1709 | private bool hasA;
|
| 1710 | private int a_ = 0;
|
| 1711 | public bool HasA {
|
| 1712 | get { return hasA; }
|
| 1713 | }
|
| 1714 | public int A {
|
| 1715 | get { return a_; }
|
| 1716 | }
|
| 1717 |
|
| 1718 | public override bool IsInitialized {
|
| 1719 | get {
|
| 1720 | return true;
|
| 1721 | }
|
| 1722 | }
|
| 1723 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1724 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1725 | int size = SerializedSize;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1726 | if (hasA) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 1727 | output.WriteInt32(47, "a", A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1728 | }
|
| 1729 | }
|
| 1730 |
|
| 1731 | private int memoizedSerializedSize = -1;
|
| 1732 | public override int SerializedSize {
|
| 1733 | get {
|
| 1734 | int size = memoizedSerializedSize;
|
| 1735 | if (size != -1) return size;
|
| 1736 |
|
| 1737 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1738 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1739 | size += pb::CodedOutputStream.ComputeInt32Size(47, A);
|
| 1740 | }
|
| 1741 | memoizedSerializedSize = size;
|
| 1742 | return size;
|
| 1743 | }
|
| 1744 | }
|
| 1745 |
|
| 1746 | #region Lite runtime methods
|
| 1747 | public override int GetHashCode() {
|
| 1748 | int hash = GetType().GetHashCode();
|
| 1749 | if (hasA) hash ^= a_.GetHashCode();
|
| 1750 | return hash;
|
| 1751 | }
|
| 1752 |
|
| 1753 | public override bool Equals(object obj) {
|
| 1754 | RepeatedGroup other = obj as RepeatedGroup;
|
| 1755 | if (other == null) return false;
|
| 1756 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 1757 | return true;
|
| 1758 | }
|
| 1759 |
|
| 1760 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1761 | PrintField("a", hasA, a_, writer);
|
| 1762 | }
|
| 1763 | #endregion
|
| 1764 |
|
| 1765 | public static RepeatedGroup ParseFrom(pb::ByteString data) {
|
| 1766 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1767 | }
|
| 1768 | public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1769 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1770 | }
|
| 1771 | public static RepeatedGroup ParseFrom(byte[] data) {
|
| 1772 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1773 | }
|
| 1774 | public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1775 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1776 | }
|
| 1777 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input) {
|
| 1778 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1779 | }
|
| 1780 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1781 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1782 | }
|
| 1783 | public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1784 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1785 | }
|
| 1786 | public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1787 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1788 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1789 | public static RepeatedGroup ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1790 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1791 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1792 | public static RepeatedGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1793 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1794 | }
|
| 1795 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1796 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1797 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1798 | public static Builder CreateBuilder(RepeatedGroup prototype) {
|
| 1799 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1800 | }
|
| 1801 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1802 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1803 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1804 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1805 | public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup, Builder> {
|
| 1806 | protected override Builder ThisBuilder {
|
| 1807 | get { return this; }
|
| 1808 | }
|
| 1809 | public Builder() {}
|
| 1810 |
|
| 1811 | RepeatedGroup result = new RepeatedGroup();
|
| 1812 |
|
| 1813 | protected override RepeatedGroup MessageBeingBuilt {
|
| 1814 | get { return result; }
|
| 1815 | }
|
| 1816 |
|
| 1817 | public override Builder Clear() {
|
| 1818 | result = new RepeatedGroup();
|
| 1819 | return this;
|
| 1820 | }
|
| 1821 |
|
| 1822 | public override Builder Clone() {
|
| 1823 | return new Builder().MergeFrom(result);
|
| 1824 | }
|
| 1825 |
|
| 1826 | public override RepeatedGroup DefaultInstanceForType {
|
| 1827 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance; }
|
| 1828 | }
|
| 1829 |
|
| 1830 | public override RepeatedGroup BuildPartial() {
|
| 1831 | if (result == null) {
|
| 1832 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1833 | }
|
| 1834 | RepeatedGroup returnMe = result;
|
| 1835 | result = null;
|
| 1836 | return returnMe;
|
| 1837 | }
|
| 1838 |
|
| 1839 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1840 | if (other is RepeatedGroup) {
|
| 1841 | return MergeFrom((RepeatedGroup) other);
|
| 1842 | } else {
|
| 1843 | base.MergeFrom(other);
|
| 1844 | return this;
|
| 1845 | }
|
| 1846 | }
|
| 1847 |
|
| 1848 | public override Builder MergeFrom(RepeatedGroup other) {
|
| 1849 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance) return this;
|
| 1850 | if (other.HasA) {
|
| 1851 | A = other.A;
|
| 1852 | }
|
| 1853 | return this;
|
| 1854 | }
|
| 1855 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1856 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1857 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1858 | }
|
| 1859 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1860 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1861 | uint tag;
|
| 1862 | string field_name;
|
| 1863 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1864 | switch (tag) {
|
| 1865 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1866 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1867 | }
|
| 1868 | default: {
|
| 1869 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1870 | return this;
|
| 1871 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1872 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1873 | break;
|
| 1874 | }
|
| 1875 | case 376: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1876 | result.hasA |= input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1877 | break;
|
| 1878 | }
|
| 1879 | }
|
| 1880 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1881 |
|
| 1882 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1883 | }
|
| 1884 |
|
| 1885 |
|
| 1886 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1887 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1888 | }
|
| 1889 | public int A {
|
| 1890 | get { return result.A; }
|
| 1891 | set { SetA(value); }
|
| 1892 | }
|
| 1893 | public Builder SetA(int value) {
|
| 1894 | result.hasA = true;
|
| 1895 | result.a_ = value;
|
| 1896 | return this;
|
| 1897 | }
|
| 1898 | public Builder ClearA() {
|
| 1899 | result.hasA = false;
|
| 1900 | result.a_ = 0;
|
| 1901 | return this;
|
| 1902 | }
|
| 1903 | }
|
| 1904 | static RepeatedGroup() {
|
| 1905 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1906 | }
|
| 1907 | }
|
| 1908 |
|
| 1909 | }
|
| 1910 | #endregion
|
| 1911 |
|
| 1912 | public const int OptionalInt32FieldNumber = 1;
|
| 1913 | private bool hasOptionalInt32;
|
| 1914 | private int optionalInt32_ = 0;
|
| 1915 | public bool HasOptionalInt32 {
|
| 1916 | get { return hasOptionalInt32; }
|
| 1917 | }
|
| 1918 | public int OptionalInt32 {
|
| 1919 | get { return optionalInt32_; }
|
| 1920 | }
|
| 1921 |
|
| 1922 | public const int OptionalInt64FieldNumber = 2;
|
| 1923 | private bool hasOptionalInt64;
|
| 1924 | private long optionalInt64_ = 0L;
|
| 1925 | public bool HasOptionalInt64 {
|
| 1926 | get { return hasOptionalInt64; }
|
| 1927 | }
|
| 1928 | public long OptionalInt64 {
|
| 1929 | get { return optionalInt64_; }
|
| 1930 | }
|
| 1931 |
|
| 1932 | public const int OptionalUint32FieldNumber = 3;
|
| 1933 | private bool hasOptionalUint32;
|
| 1934 | private uint optionalUint32_ = 0;
|
| 1935 | public bool HasOptionalUint32 {
|
| 1936 | get { return hasOptionalUint32; }
|
| 1937 | }
|
| 1938 | [global::System.CLSCompliant(false)]
|
| 1939 | public uint OptionalUint32 {
|
| 1940 | get { return optionalUint32_; }
|
| 1941 | }
|
| 1942 |
|
| 1943 | public const int OptionalUint64FieldNumber = 4;
|
| 1944 | private bool hasOptionalUint64;
|
| 1945 | private ulong optionalUint64_ = 0UL;
|
| 1946 | public bool HasOptionalUint64 {
|
| 1947 | get { return hasOptionalUint64; }
|
| 1948 | }
|
| 1949 | [global::System.CLSCompliant(false)]
|
| 1950 | public ulong OptionalUint64 {
|
| 1951 | get { return optionalUint64_; }
|
| 1952 | }
|
| 1953 |
|
| 1954 | public const int OptionalSint32FieldNumber = 5;
|
| 1955 | private bool hasOptionalSint32;
|
| 1956 | private int optionalSint32_ = 0;
|
| 1957 | public bool HasOptionalSint32 {
|
| 1958 | get { return hasOptionalSint32; }
|
| 1959 | }
|
| 1960 | public int OptionalSint32 {
|
| 1961 | get { return optionalSint32_; }
|
| 1962 | }
|
| 1963 |
|
| 1964 | public const int OptionalSint64FieldNumber = 6;
|
| 1965 | private bool hasOptionalSint64;
|
| 1966 | private long optionalSint64_ = 0;
|
| 1967 | public bool HasOptionalSint64 {
|
| 1968 | get { return hasOptionalSint64; }
|
| 1969 | }
|
| 1970 | public long OptionalSint64 {
|
| 1971 | get { return optionalSint64_; }
|
| 1972 | }
|
| 1973 |
|
| 1974 | public const int OptionalFixed32FieldNumber = 7;
|
| 1975 | private bool hasOptionalFixed32;
|
| 1976 | private uint optionalFixed32_ = 0;
|
| 1977 | public bool HasOptionalFixed32 {
|
| 1978 | get { return hasOptionalFixed32; }
|
| 1979 | }
|
| 1980 | [global::System.CLSCompliant(false)]
|
| 1981 | public uint OptionalFixed32 {
|
| 1982 | get { return optionalFixed32_; }
|
| 1983 | }
|
| 1984 |
|
| 1985 | public const int OptionalFixed64FieldNumber = 8;
|
| 1986 | private bool hasOptionalFixed64;
|
| 1987 | private ulong optionalFixed64_ = 0;
|
| 1988 | public bool HasOptionalFixed64 {
|
| 1989 | get { return hasOptionalFixed64; }
|
| 1990 | }
|
| 1991 | [global::System.CLSCompliant(false)]
|
| 1992 | public ulong OptionalFixed64 {
|
| 1993 | get { return optionalFixed64_; }
|
| 1994 | }
|
| 1995 |
|
| 1996 | public const int OptionalSfixed32FieldNumber = 9;
|
| 1997 | private bool hasOptionalSfixed32;
|
| 1998 | private int optionalSfixed32_ = 0;
|
| 1999 | public bool HasOptionalSfixed32 {
|
| 2000 | get { return hasOptionalSfixed32; }
|
| 2001 | }
|
| 2002 | public int OptionalSfixed32 {
|
| 2003 | get { return optionalSfixed32_; }
|
| 2004 | }
|
| 2005 |
|
| 2006 | public const int OptionalSfixed64FieldNumber = 10;
|
| 2007 | private bool hasOptionalSfixed64;
|
| 2008 | private long optionalSfixed64_ = 0;
|
| 2009 | public bool HasOptionalSfixed64 {
|
| 2010 | get { return hasOptionalSfixed64; }
|
| 2011 | }
|
| 2012 | public long OptionalSfixed64 {
|
| 2013 | get { return optionalSfixed64_; }
|
| 2014 | }
|
| 2015 |
|
| 2016 | public const int OptionalFloatFieldNumber = 11;
|
| 2017 | private bool hasOptionalFloat;
|
| 2018 | private float optionalFloat_ = 0F;
|
| 2019 | public bool HasOptionalFloat {
|
| 2020 | get { return hasOptionalFloat; }
|
| 2021 | }
|
| 2022 | public float OptionalFloat {
|
| 2023 | get { return optionalFloat_; }
|
| 2024 | }
|
| 2025 |
|
| 2026 | public const int OptionalDoubleFieldNumber = 12;
|
| 2027 | private bool hasOptionalDouble;
|
| 2028 | private double optionalDouble_ = 0D;
|
| 2029 | public bool HasOptionalDouble {
|
| 2030 | get { return hasOptionalDouble; }
|
| 2031 | }
|
| 2032 | public double OptionalDouble {
|
| 2033 | get { return optionalDouble_; }
|
| 2034 | }
|
| 2035 |
|
| 2036 | public const int OptionalBoolFieldNumber = 13;
|
| 2037 | private bool hasOptionalBool;
|
| 2038 | private bool optionalBool_ = false;
|
| 2039 | public bool HasOptionalBool {
|
| 2040 | get { return hasOptionalBool; }
|
| 2041 | }
|
| 2042 | public bool OptionalBool {
|
| 2043 | get { return optionalBool_; }
|
| 2044 | }
|
| 2045 |
|
| 2046 | public const int OptionalStringFieldNumber = 14;
|
| 2047 | private bool hasOptionalString;
|
| 2048 | private string optionalString_ = "";
|
| 2049 | public bool HasOptionalString {
|
| 2050 | get { return hasOptionalString; }
|
| 2051 | }
|
| 2052 | public string OptionalString {
|
| 2053 | get { return optionalString_; }
|
| 2054 | }
|
| 2055 |
|
| 2056 | public const int OptionalBytesFieldNumber = 15;
|
| 2057 | private bool hasOptionalBytes;
|
| 2058 | private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
|
| 2059 | public bool HasOptionalBytes {
|
| 2060 | get { return hasOptionalBytes; }
|
| 2061 | }
|
| 2062 | public pb::ByteString OptionalBytes {
|
| 2063 | get { return optionalBytes_; }
|
| 2064 | }
|
| 2065 |
|
| 2066 | public const int OptionalGroupFieldNumber = 16;
|
| 2067 | private bool hasOptionalGroup;
|
| 2068 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance;
|
| 2069 | public bool HasOptionalGroup {
|
| 2070 | get { return hasOptionalGroup; }
|
| 2071 | }
|
| 2072 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
|
| 2073 | get { return optionalGroup_; }
|
| 2074 | }
|
| 2075 |
|
| 2076 | public const int OptionalNestedMessageFieldNumber = 18;
|
| 2077 | private bool hasOptionalNestedMessage;
|
| 2078 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance;
|
| 2079 | public bool HasOptionalNestedMessage {
|
| 2080 | get { return hasOptionalNestedMessage; }
|
| 2081 | }
|
| 2082 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
|
| 2083 | get { return optionalNestedMessage_; }
|
| 2084 | }
|
| 2085 |
|
| 2086 | public const int OptionalForeignMessageFieldNumber = 19;
|
| 2087 | private bool hasOptionalForeignMessage;
|
| 2088 | private global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance;
|
| 2089 | public bool HasOptionalForeignMessage {
|
| 2090 | get { return hasOptionalForeignMessage; }
|
| 2091 | }
|
| 2092 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage {
|
| 2093 | get { return optionalForeignMessage_; }
|
| 2094 | }
|
| 2095 |
|
| 2096 | public const int OptionalImportMessageFieldNumber = 20;
|
| 2097 | private bool hasOptionalImportMessage;
|
| 2098 | private global::Google.ProtocolBuffers.TestProtos.ImportMessageLite optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance;
|
| 2099 | public bool HasOptionalImportMessage {
|
| 2100 | get { return hasOptionalImportMessage; }
|
| 2101 | }
|
| 2102 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage {
|
| 2103 | get { return optionalImportMessage_; }
|
| 2104 | }
|
| 2105 |
|
| 2106 | public const int OptionalNestedEnumFieldNumber = 21;
|
| 2107 | private bool hasOptionalNestedEnum;
|
| 2108 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO;
|
| 2109 | public bool HasOptionalNestedEnum {
|
| 2110 | get { return hasOptionalNestedEnum; }
|
| 2111 | }
|
| 2112 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
|
| 2113 | get { return optionalNestedEnum_; }
|
| 2114 | }
|
| 2115 |
|
| 2116 | public const int OptionalForeignEnumFieldNumber = 22;
|
| 2117 | private bool hasOptionalForeignEnum;
|
| 2118 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
|
| 2119 | public bool HasOptionalForeignEnum {
|
| 2120 | get { return hasOptionalForeignEnum; }
|
| 2121 | }
|
| 2122 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
|
| 2123 | get { return optionalForeignEnum_; }
|
| 2124 | }
|
| 2125 |
|
| 2126 | public const int OptionalImportEnumFieldNumber = 23;
|
| 2127 | private bool hasOptionalImportEnum;
|
| 2128 | private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO;
|
| 2129 | public bool HasOptionalImportEnum {
|
| 2130 | get { return hasOptionalImportEnum; }
|
| 2131 | }
|
| 2132 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum {
|
| 2133 | get { return optionalImportEnum_; }
|
| 2134 | }
|
| 2135 |
|
| 2136 | public const int OptionalStringPieceFieldNumber = 24;
|
| 2137 | private bool hasOptionalStringPiece;
|
| 2138 | private string optionalStringPiece_ = "";
|
| 2139 | public bool HasOptionalStringPiece {
|
| 2140 | get { return hasOptionalStringPiece; }
|
| 2141 | }
|
| 2142 | public string OptionalStringPiece {
|
| 2143 | get { return optionalStringPiece_; }
|
| 2144 | }
|
| 2145 |
|
| 2146 | public const int OptionalCordFieldNumber = 25;
|
| 2147 | private bool hasOptionalCord;
|
| 2148 | private string optionalCord_ = "";
|
| 2149 | public bool HasOptionalCord {
|
| 2150 | get { return hasOptionalCord; }
|
| 2151 | }
|
| 2152 | public string OptionalCord {
|
| 2153 | get { return optionalCord_; }
|
| 2154 | }
|
| 2155 |
|
| 2156 | public const int RepeatedInt32FieldNumber = 31;
|
| 2157 | private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
|
| 2158 | public scg::IList<int> RepeatedInt32List {
|
| 2159 | get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
|
| 2160 | }
|
| 2161 | public int RepeatedInt32Count {
|
| 2162 | get { return repeatedInt32_.Count; }
|
| 2163 | }
|
| 2164 | public int GetRepeatedInt32(int index) {
|
| 2165 | return repeatedInt32_[index];
|
| 2166 | }
|
| 2167 |
|
| 2168 | public const int RepeatedInt64FieldNumber = 32;
|
| 2169 | private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
|
| 2170 | public scg::IList<long> RepeatedInt64List {
|
| 2171 | get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
|
| 2172 | }
|
| 2173 | public int RepeatedInt64Count {
|
| 2174 | get { return repeatedInt64_.Count; }
|
| 2175 | }
|
| 2176 | public long GetRepeatedInt64(int index) {
|
| 2177 | return repeatedInt64_[index];
|
| 2178 | }
|
| 2179 |
|
| 2180 | public const int RepeatedUint32FieldNumber = 33;
|
| 2181 | private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>();
|
| 2182 | [global::System.CLSCompliant(false)]
|
| 2183 | public scg::IList<uint> RepeatedUint32List {
|
| 2184 | get { return pbc::Lists.AsReadOnly(repeatedUint32_); }
|
| 2185 | }
|
| 2186 | public int RepeatedUint32Count {
|
| 2187 | get { return repeatedUint32_.Count; }
|
| 2188 | }
|
| 2189 | [global::System.CLSCompliant(false)]
|
| 2190 | public uint GetRepeatedUint32(int index) {
|
| 2191 | return repeatedUint32_[index];
|
| 2192 | }
|
| 2193 |
|
| 2194 | public const int RepeatedUint64FieldNumber = 34;
|
| 2195 | private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
|
| 2196 | [global::System.CLSCompliant(false)]
|
| 2197 | public scg::IList<ulong> RepeatedUint64List {
|
| 2198 | get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
|
| 2199 | }
|
| 2200 | public int RepeatedUint64Count {
|
| 2201 | get { return repeatedUint64_.Count; }
|
| 2202 | }
|
| 2203 | [global::System.CLSCompliant(false)]
|
| 2204 | public ulong GetRepeatedUint64(int index) {
|
| 2205 | return repeatedUint64_[index];
|
| 2206 | }
|
| 2207 |
|
| 2208 | public const int RepeatedSint32FieldNumber = 35;
|
| 2209 | private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>();
|
| 2210 | public scg::IList<int> RepeatedSint32List {
|
| 2211 | get { return pbc::Lists.AsReadOnly(repeatedSint32_); }
|
| 2212 | }
|
| 2213 | public int RepeatedSint32Count {
|
| 2214 | get { return repeatedSint32_.Count; }
|
| 2215 | }
|
| 2216 | public int GetRepeatedSint32(int index) {
|
| 2217 | return repeatedSint32_[index];
|
| 2218 | }
|
| 2219 |
|
| 2220 | public const int RepeatedSint64FieldNumber = 36;
|
| 2221 | private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>();
|
| 2222 | public scg::IList<long> RepeatedSint64List {
|
| 2223 | get { return pbc::Lists.AsReadOnly(repeatedSint64_); }
|
| 2224 | }
|
| 2225 | public int RepeatedSint64Count {
|
| 2226 | get { return repeatedSint64_.Count; }
|
| 2227 | }
|
| 2228 | public long GetRepeatedSint64(int index) {
|
| 2229 | return repeatedSint64_[index];
|
| 2230 | }
|
| 2231 |
|
| 2232 | public const int RepeatedFixed32FieldNumber = 37;
|
| 2233 | private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
|
| 2234 | [global::System.CLSCompliant(false)]
|
| 2235 | public scg::IList<uint> RepeatedFixed32List {
|
| 2236 | get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
|
| 2237 | }
|
| 2238 | public int RepeatedFixed32Count {
|
| 2239 | get { return repeatedFixed32_.Count; }
|
| 2240 | }
|
| 2241 | [global::System.CLSCompliant(false)]
|
| 2242 | public uint GetRepeatedFixed32(int index) {
|
| 2243 | return repeatedFixed32_[index];
|
| 2244 | }
|
| 2245 |
|
| 2246 | public const int RepeatedFixed64FieldNumber = 38;
|
| 2247 | private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
|
| 2248 | [global::System.CLSCompliant(false)]
|
| 2249 | public scg::IList<ulong> RepeatedFixed64List {
|
| 2250 | get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
|
| 2251 | }
|
| 2252 | public int RepeatedFixed64Count {
|
| 2253 | get { return repeatedFixed64_.Count; }
|
| 2254 | }
|
| 2255 | [global::System.CLSCompliant(false)]
|
| 2256 | public ulong GetRepeatedFixed64(int index) {
|
| 2257 | return repeatedFixed64_[index];
|
| 2258 | }
|
| 2259 |
|
| 2260 | public const int RepeatedSfixed32FieldNumber = 39;
|
| 2261 | private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>();
|
| 2262 | public scg::IList<int> RepeatedSfixed32List {
|
| 2263 | get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); }
|
| 2264 | }
|
| 2265 | public int RepeatedSfixed32Count {
|
| 2266 | get { return repeatedSfixed32_.Count; }
|
| 2267 | }
|
| 2268 | public int GetRepeatedSfixed32(int index) {
|
| 2269 | return repeatedSfixed32_[index];
|
| 2270 | }
|
| 2271 |
|
| 2272 | public const int RepeatedSfixed64FieldNumber = 40;
|
| 2273 | private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>();
|
| 2274 | public scg::IList<long> RepeatedSfixed64List {
|
| 2275 | get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); }
|
| 2276 | }
|
| 2277 | public int RepeatedSfixed64Count {
|
| 2278 | get { return repeatedSfixed64_.Count; }
|
| 2279 | }
|
| 2280 | public long GetRepeatedSfixed64(int index) {
|
| 2281 | return repeatedSfixed64_[index];
|
| 2282 | }
|
| 2283 |
|
| 2284 | public const int RepeatedFloatFieldNumber = 41;
|
| 2285 | private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
|
| 2286 | public scg::IList<float> RepeatedFloatList {
|
| 2287 | get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
|
| 2288 | }
|
| 2289 | public int RepeatedFloatCount {
|
| 2290 | get { return repeatedFloat_.Count; }
|
| 2291 | }
|
| 2292 | public float GetRepeatedFloat(int index) {
|
| 2293 | return repeatedFloat_[index];
|
| 2294 | }
|
| 2295 |
|
| 2296 | public const int RepeatedDoubleFieldNumber = 42;
|
| 2297 | private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>();
|
| 2298 | public scg::IList<double> RepeatedDoubleList {
|
| 2299 | get { return pbc::Lists.AsReadOnly(repeatedDouble_); }
|
| 2300 | }
|
| 2301 | public int RepeatedDoubleCount {
|
| 2302 | get { return repeatedDouble_.Count; }
|
| 2303 | }
|
| 2304 | public double GetRepeatedDouble(int index) {
|
| 2305 | return repeatedDouble_[index];
|
| 2306 | }
|
| 2307 |
|
| 2308 | public const int RepeatedBoolFieldNumber = 43;
|
| 2309 | private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>();
|
| 2310 | public scg::IList<bool> RepeatedBoolList {
|
| 2311 | get { return pbc::Lists.AsReadOnly(repeatedBool_); }
|
| 2312 | }
|
| 2313 | public int RepeatedBoolCount {
|
| 2314 | get { return repeatedBool_.Count; }
|
| 2315 | }
|
| 2316 | public bool GetRepeatedBool(int index) {
|
| 2317 | return repeatedBool_[index];
|
| 2318 | }
|
| 2319 |
|
| 2320 | public const int RepeatedStringFieldNumber = 44;
|
| 2321 | private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>();
|
| 2322 | public scg::IList<string> RepeatedStringList {
|
| 2323 | get { return pbc::Lists.AsReadOnly(repeatedString_); }
|
| 2324 | }
|
| 2325 | public int RepeatedStringCount {
|
| 2326 | get { return repeatedString_.Count; }
|
| 2327 | }
|
| 2328 | public string GetRepeatedString(int index) {
|
| 2329 | return repeatedString_[index];
|
| 2330 | }
|
| 2331 |
|
| 2332 | public const int RepeatedBytesFieldNumber = 45;
|
| 2333 | private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>();
|
| 2334 | public scg::IList<pb::ByteString> RepeatedBytesList {
|
| 2335 | get { return pbc::Lists.AsReadOnly(repeatedBytes_); }
|
| 2336 | }
|
| 2337 | public int RepeatedBytesCount {
|
| 2338 | get { return repeatedBytes_.Count; }
|
| 2339 | }
|
| 2340 | public pb::ByteString GetRepeatedBytes(int index) {
|
| 2341 | return repeatedBytes_[index];
|
| 2342 | }
|
| 2343 |
|
| 2344 | public const int RepeatedGroupFieldNumber = 46;
|
| 2345 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup>();
|
| 2346 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
|
| 2347 | get { return repeatedGroup_; }
|
| 2348 | }
|
| 2349 | public int RepeatedGroupCount {
|
| 2350 | get { return repeatedGroup_.Count; }
|
| 2351 | }
|
| 2352 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
|
| 2353 | return repeatedGroup_[index];
|
| 2354 | }
|
| 2355 |
|
| 2356 | public const int RepeatedNestedMessageFieldNumber = 48;
|
| 2357 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>();
|
| 2358 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
|
| 2359 | get { return repeatedNestedMessage_; }
|
| 2360 | }
|
| 2361 | public int RepeatedNestedMessageCount {
|
| 2362 | get { return repeatedNestedMessage_.Count; }
|
| 2363 | }
|
| 2364 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
|
| 2365 | return repeatedNestedMessage_[index];
|
| 2366 | }
|
| 2367 |
|
| 2368 | public const int RepeatedForeignMessageFieldNumber = 49;
|
| 2369 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>();
|
| 2370 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList {
|
| 2371 | get { return repeatedForeignMessage_; }
|
| 2372 | }
|
| 2373 | public int RepeatedForeignMessageCount {
|
| 2374 | get { return repeatedForeignMessage_.Count; }
|
| 2375 | }
|
| 2376 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
|
| 2377 | return repeatedForeignMessage_[index];
|
| 2378 | }
|
| 2379 |
|
| 2380 | public const int RepeatedImportMessageFieldNumber = 50;
|
| 2381 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>();
|
| 2382 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
|
| 2383 | get { return repeatedImportMessage_; }
|
| 2384 | }
|
| 2385 | public int RepeatedImportMessageCount {
|
| 2386 | get { return repeatedImportMessage_.Count; }
|
| 2387 | }
|
| 2388 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
|
| 2389 | return repeatedImportMessage_[index];
|
| 2390 | }
|
| 2391 |
|
| 2392 | public const int RepeatedNestedEnumFieldNumber = 51;
|
| 2393 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>();
|
| 2394 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
|
| 2395 | get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
|
| 2396 | }
|
| 2397 | public int RepeatedNestedEnumCount {
|
| 2398 | get { return repeatedNestedEnum_.Count; }
|
| 2399 | }
|
| 2400 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
|
| 2401 | return repeatedNestedEnum_[index];
|
| 2402 | }
|
| 2403 |
|
| 2404 | public const int RepeatedForeignEnumFieldNumber = 52;
|
| 2405 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
|
| 2406 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList {
|
| 2407 | get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
|
| 2408 | }
|
| 2409 | public int RepeatedForeignEnumCount {
|
| 2410 | get { return repeatedForeignEnum_.Count; }
|
| 2411 | }
|
| 2412 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
|
| 2413 | return repeatedForeignEnum_[index];
|
| 2414 | }
|
| 2415 |
|
| 2416 | public const int RepeatedImportEnumFieldNumber = 53;
|
| 2417 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>();
|
| 2418 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
|
| 2419 | get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
|
| 2420 | }
|
| 2421 | public int RepeatedImportEnumCount {
|
| 2422 | get { return repeatedImportEnum_.Count; }
|
| 2423 | }
|
| 2424 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) {
|
| 2425 | return repeatedImportEnum_[index];
|
| 2426 | }
|
| 2427 |
|
| 2428 | public const int RepeatedStringPieceFieldNumber = 54;
|
| 2429 | private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>();
|
| 2430 | public scg::IList<string> RepeatedStringPieceList {
|
| 2431 | get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); }
|
| 2432 | }
|
| 2433 | public int RepeatedStringPieceCount {
|
| 2434 | get { return repeatedStringPiece_.Count; }
|
| 2435 | }
|
| 2436 | public string GetRepeatedStringPiece(int index) {
|
| 2437 | return repeatedStringPiece_[index];
|
| 2438 | }
|
| 2439 |
|
| 2440 | public const int RepeatedCordFieldNumber = 55;
|
| 2441 | private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>();
|
| 2442 | public scg::IList<string> RepeatedCordList {
|
| 2443 | get { return pbc::Lists.AsReadOnly(repeatedCord_); }
|
| 2444 | }
|
| 2445 | public int RepeatedCordCount {
|
| 2446 | get { return repeatedCord_.Count; }
|
| 2447 | }
|
| 2448 | public string GetRepeatedCord(int index) {
|
| 2449 | return repeatedCord_[index];
|
| 2450 | }
|
| 2451 |
|
| 2452 | public const int DefaultInt32FieldNumber = 61;
|
| 2453 | private bool hasDefaultInt32;
|
| 2454 | private int defaultInt32_ = 41;
|
| 2455 | public bool HasDefaultInt32 {
|
| 2456 | get { return hasDefaultInt32; }
|
| 2457 | }
|
| 2458 | public int DefaultInt32 {
|
| 2459 | get { return defaultInt32_; }
|
| 2460 | }
|
| 2461 |
|
| 2462 | public const int DefaultInt64FieldNumber = 62;
|
| 2463 | private bool hasDefaultInt64;
|
| 2464 | private long defaultInt64_ = 42L;
|
| 2465 | public bool HasDefaultInt64 {
|
| 2466 | get { return hasDefaultInt64; }
|
| 2467 | }
|
| 2468 | public long DefaultInt64 {
|
| 2469 | get { return defaultInt64_; }
|
| 2470 | }
|
| 2471 |
|
| 2472 | public const int DefaultUint32FieldNumber = 63;
|
| 2473 | private bool hasDefaultUint32;
|
| 2474 | private uint defaultUint32_ = 43;
|
| 2475 | public bool HasDefaultUint32 {
|
| 2476 | get { return hasDefaultUint32; }
|
| 2477 | }
|
| 2478 | [global::System.CLSCompliant(false)]
|
| 2479 | public uint DefaultUint32 {
|
| 2480 | get { return defaultUint32_; }
|
| 2481 | }
|
| 2482 |
|
| 2483 | public const int DefaultUint64FieldNumber = 64;
|
| 2484 | private bool hasDefaultUint64;
|
| 2485 | private ulong defaultUint64_ = 44UL;
|
| 2486 | public bool HasDefaultUint64 {
|
| 2487 | get { return hasDefaultUint64; }
|
| 2488 | }
|
| 2489 | [global::System.CLSCompliant(false)]
|
| 2490 | public ulong DefaultUint64 {
|
| 2491 | get { return defaultUint64_; }
|
| 2492 | }
|
| 2493 |
|
| 2494 | public const int DefaultSint32FieldNumber = 65;
|
| 2495 | private bool hasDefaultSint32;
|
| 2496 | private int defaultSint32_ = -45;
|
| 2497 | public bool HasDefaultSint32 {
|
| 2498 | get { return hasDefaultSint32; }
|
| 2499 | }
|
| 2500 | public int DefaultSint32 {
|
| 2501 | get { return defaultSint32_; }
|
| 2502 | }
|
| 2503 |
|
| 2504 | public const int DefaultSint64FieldNumber = 66;
|
| 2505 | private bool hasDefaultSint64;
|
| 2506 | private long defaultSint64_ = 46;
|
| 2507 | public bool HasDefaultSint64 {
|
| 2508 | get { return hasDefaultSint64; }
|
| 2509 | }
|
| 2510 | public long DefaultSint64 {
|
| 2511 | get { return defaultSint64_; }
|
| 2512 | }
|
| 2513 |
|
| 2514 | public const int DefaultFixed32FieldNumber = 67;
|
| 2515 | private bool hasDefaultFixed32;
|
| 2516 | private uint defaultFixed32_ = 47;
|
| 2517 | public bool HasDefaultFixed32 {
|
| 2518 | get { return hasDefaultFixed32; }
|
| 2519 | }
|
| 2520 | [global::System.CLSCompliant(false)]
|
| 2521 | public uint DefaultFixed32 {
|
| 2522 | get { return defaultFixed32_; }
|
| 2523 | }
|
| 2524 |
|
| 2525 | public const int DefaultFixed64FieldNumber = 68;
|
| 2526 | private bool hasDefaultFixed64;
|
| 2527 | private ulong defaultFixed64_ = 48;
|
| 2528 | public bool HasDefaultFixed64 {
|
| 2529 | get { return hasDefaultFixed64; }
|
| 2530 | }
|
| 2531 | [global::System.CLSCompliant(false)]
|
| 2532 | public ulong DefaultFixed64 {
|
| 2533 | get { return defaultFixed64_; }
|
| 2534 | }
|
| 2535 |
|
| 2536 | public const int DefaultSfixed32FieldNumber = 69;
|
| 2537 | private bool hasDefaultSfixed32;
|
| 2538 | private int defaultSfixed32_ = 49;
|
| 2539 | public bool HasDefaultSfixed32 {
|
| 2540 | get { return hasDefaultSfixed32; }
|
| 2541 | }
|
| 2542 | public int DefaultSfixed32 {
|
| 2543 | get { return defaultSfixed32_; }
|
| 2544 | }
|
| 2545 |
|
| 2546 | public const int DefaultSfixed64FieldNumber = 70;
|
| 2547 | private bool hasDefaultSfixed64;
|
| 2548 | private long defaultSfixed64_ = -50;
|
| 2549 | public bool HasDefaultSfixed64 {
|
| 2550 | get { return hasDefaultSfixed64; }
|
| 2551 | }
|
| 2552 | public long DefaultSfixed64 {
|
| 2553 | get { return defaultSfixed64_; }
|
| 2554 | }
|
| 2555 |
|
| 2556 | public const int DefaultFloatFieldNumber = 71;
|
| 2557 | private bool hasDefaultFloat;
|
| 2558 | private float defaultFloat_ = 51.5F;
|
| 2559 | public bool HasDefaultFloat {
|
| 2560 | get { return hasDefaultFloat; }
|
| 2561 | }
|
| 2562 | public float DefaultFloat {
|
| 2563 | get { return defaultFloat_; }
|
| 2564 | }
|
| 2565 |
|
| 2566 | public const int DefaultDoubleFieldNumber = 72;
|
| 2567 | private bool hasDefaultDouble;
|
| 2568 | private double defaultDouble_ = 52000D;
|
| 2569 | public bool HasDefaultDouble {
|
| 2570 | get { return hasDefaultDouble; }
|
| 2571 | }
|
| 2572 | public double DefaultDouble {
|
| 2573 | get { return defaultDouble_; }
|
| 2574 | }
|
| 2575 |
|
| 2576 | public const int DefaultBoolFieldNumber = 73;
|
| 2577 | private bool hasDefaultBool;
|
| 2578 | private bool defaultBool_ = true;
|
| 2579 | public bool HasDefaultBool {
|
| 2580 | get { return hasDefaultBool; }
|
| 2581 | }
|
| 2582 | public bool DefaultBool {
|
| 2583 | get { return defaultBool_; }
|
| 2584 | }
|
| 2585 |
|
| 2586 | public const int DefaultStringFieldNumber = 74;
|
| 2587 | private bool hasDefaultString;
|
| 2588 | private string defaultString_ = "hello";
|
| 2589 | public bool HasDefaultString {
|
| 2590 | get { return hasDefaultString; }
|
| 2591 | }
|
| 2592 | public string DefaultString {
|
| 2593 | get { return defaultString_; }
|
| 2594 | }
|
| 2595 |
|
| 2596 | public const int DefaultBytesFieldNumber = 75;
|
| 2597 | private bool hasDefaultBytes;
|
| 2598 | private pb::ByteString defaultBytes_ = ByteString.FromBase64("d29ybGQ=");
|
| 2599 | public bool HasDefaultBytes {
|
| 2600 | get { return hasDefaultBytes; }
|
| 2601 | }
|
| 2602 | public pb::ByteString DefaultBytes {
|
| 2603 | get { return defaultBytes_; }
|
| 2604 | }
|
| 2605 |
|
| 2606 | public const int DefaultNestedEnumFieldNumber = 81;
|
| 2607 | private bool hasDefaultNestedEnum;
|
| 2608 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR;
|
| 2609 | public bool HasDefaultNestedEnum {
|
| 2610 | get { return hasDefaultNestedEnum; }
|
| 2611 | }
|
| 2612 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
|
| 2613 | get { return defaultNestedEnum_; }
|
| 2614 | }
|
| 2615 |
|
| 2616 | public const int DefaultForeignEnumFieldNumber = 82;
|
| 2617 | private bool hasDefaultForeignEnum;
|
| 2618 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
|
| 2619 | public bool HasDefaultForeignEnum {
|
| 2620 | get { return hasDefaultForeignEnum; }
|
| 2621 | }
|
| 2622 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
|
| 2623 | get { return defaultForeignEnum_; }
|
| 2624 | }
|
| 2625 |
|
| 2626 | public const int DefaultImportEnumFieldNumber = 83;
|
| 2627 | private bool hasDefaultImportEnum;
|
| 2628 | private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR;
|
| 2629 | public bool HasDefaultImportEnum {
|
| 2630 | get { return hasDefaultImportEnum; }
|
| 2631 | }
|
| 2632 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum {
|
| 2633 | get { return defaultImportEnum_; }
|
| 2634 | }
|
| 2635 |
|
| 2636 | public const int DefaultStringPieceFieldNumber = 84;
|
| 2637 | private bool hasDefaultStringPiece;
|
| 2638 | private string defaultStringPiece_ = "abc";
|
| 2639 | public bool HasDefaultStringPiece {
|
| 2640 | get { return hasDefaultStringPiece; }
|
| 2641 | }
|
| 2642 | public string DefaultStringPiece {
|
| 2643 | get { return defaultStringPiece_; }
|
| 2644 | }
|
| 2645 |
|
| 2646 | public const int DefaultCordFieldNumber = 85;
|
| 2647 | private bool hasDefaultCord;
|
| 2648 | private string defaultCord_ = "123";
|
| 2649 | public bool HasDefaultCord {
|
| 2650 | get { return hasDefaultCord; }
|
| 2651 | }
|
| 2652 | public string DefaultCord {
|
| 2653 | get { return defaultCord_; }
|
| 2654 | }
|
| 2655 |
|
| 2656 | public override bool IsInitialized {
|
| 2657 | get {
|
| 2658 | return true;
|
| 2659 | }
|
| 2660 | }
|
| 2661 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2662 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2663 | int size = SerializedSize;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2664 | if (hasOptionalInt32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2665 | output.WriteInt32(1, "optional_int32", OptionalInt32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2666 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2667 | if (hasOptionalInt64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2668 | output.WriteInt64(2, "optional_int64", OptionalInt64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2669 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2670 | if (hasOptionalUint32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2671 | output.WriteUInt32(3, "optional_uint32", OptionalUint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2672 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2673 | if (hasOptionalUint64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2674 | output.WriteUInt64(4, "optional_uint64", OptionalUint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2675 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2676 | if (hasOptionalSint32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2677 | output.WriteSInt32(5, "optional_sint32", OptionalSint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2678 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2679 | if (hasOptionalSint64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2680 | output.WriteSInt64(6, "optional_sint64", OptionalSint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2681 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2682 | if (hasOptionalFixed32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2683 | output.WriteFixed32(7, "optional_fixed32", OptionalFixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2684 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2685 | if (hasOptionalFixed64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2686 | output.WriteFixed64(8, "optional_fixed64", OptionalFixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2687 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2688 | if (hasOptionalSfixed32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2689 | output.WriteSFixed32(9, "optional_sfixed32", OptionalSfixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2690 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2691 | if (hasOptionalSfixed64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2692 | output.WriteSFixed64(10, "optional_sfixed64", OptionalSfixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2693 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2694 | if (hasOptionalFloat) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2695 | output.WriteFloat(11, "optional_float", OptionalFloat);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2696 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2697 | if (hasOptionalDouble) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2698 | output.WriteDouble(12, "optional_double", OptionalDouble);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2699 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2700 | if (hasOptionalBool) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2701 | output.WriteBool(13, "optional_bool", OptionalBool);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2702 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2703 | if (hasOptionalString) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2704 | output.WriteString(14, "optional_string", OptionalString);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2705 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2706 | if (hasOptionalBytes) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2707 | output.WriteBytes(15, "optional_bytes", OptionalBytes);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2708 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2709 | if (hasOptionalGroup) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2710 | output.WriteGroup(16, "optionalgroup", OptionalGroup);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2711 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2712 | if (hasOptionalNestedMessage) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2713 | output.WriteMessage(18, "optional_nested_message", OptionalNestedMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2714 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2715 | if (hasOptionalForeignMessage) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2716 | output.WriteMessage(19, "optional_foreign_message", OptionalForeignMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2717 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2718 | if (hasOptionalImportMessage) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2719 | output.WriteMessage(20, "optional_import_message", OptionalImportMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2720 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2721 | if (hasOptionalNestedEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2722 | output.WriteEnum(21, "optional_nested_enum", (int) OptionalNestedEnum, OptionalNestedEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2723 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2724 | if (hasOptionalForeignEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2725 | output.WriteEnum(22, "optional_foreign_enum", (int) OptionalForeignEnum, OptionalForeignEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2726 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2727 | if (hasOptionalImportEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2728 | output.WriteEnum(23, "optional_import_enum", (int) OptionalImportEnum, OptionalImportEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2729 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2730 | if (hasOptionalStringPiece) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2731 | output.WriteString(24, "optional_string_piece", OptionalStringPiece);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2732 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2733 | if (hasOptionalCord) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2734 | output.WriteString(25, "optional_cord", OptionalCord);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2735 | }
|
| 2736 | if (repeatedInt32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2737 | output.WriteArray(pbd::FieldType.Int32, 31, "repeated_int32", repeatedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2738 | }
|
| 2739 | if (repeatedInt64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2740 | output.WriteArray(pbd::FieldType.Int64, 32, "repeated_int64", repeatedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2741 | }
|
| 2742 | if (repeatedUint32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2743 | output.WriteArray(pbd::FieldType.UInt32, 33, "repeated_uint32", repeatedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2744 | }
|
| 2745 | if (repeatedUint64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2746 | output.WriteArray(pbd::FieldType.UInt64, 34, "repeated_uint64", repeatedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2747 | }
|
| 2748 | if (repeatedSint32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2749 | output.WriteArray(pbd::FieldType.SInt32, 35, "repeated_sint32", repeatedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2750 | }
|
| 2751 | if (repeatedSint64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2752 | output.WriteArray(pbd::FieldType.SInt64, 36, "repeated_sint64", repeatedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2753 | }
|
| 2754 | if (repeatedFixed32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2755 | output.WriteArray(pbd::FieldType.Fixed32, 37, "repeated_fixed32", repeatedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2756 | }
|
| 2757 | if (repeatedFixed64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2758 | output.WriteArray(pbd::FieldType.Fixed64, 38, "repeated_fixed64", repeatedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2759 | }
|
| 2760 | if (repeatedSfixed32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2761 | output.WriteArray(pbd::FieldType.SFixed32, 39, "repeated_sfixed32", repeatedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2762 | }
|
| 2763 | if (repeatedSfixed64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2764 | output.WriteArray(pbd::FieldType.SFixed64, 40, "repeated_sfixed64", repeatedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2765 | }
|
| 2766 | if (repeatedFloat_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2767 | output.WriteArray(pbd::FieldType.Float, 41, "repeated_float", repeatedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2768 | }
|
| 2769 | if (repeatedDouble_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2770 | output.WriteArray(pbd::FieldType.Double, 42, "repeated_double", repeatedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2771 | }
|
| 2772 | if (repeatedBool_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2773 | output.WriteArray(pbd::FieldType.Bool, 43, "repeated_bool", repeatedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2774 | }
|
| 2775 | if (repeatedString_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2776 | output.WriteArray(pbd::FieldType.String, 44, "repeated_string", repeatedString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2777 | }
|
| 2778 | if (repeatedBytes_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2779 | output.WriteArray(pbd::FieldType.Bytes, 45, "repeated_bytes", repeatedBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2780 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2781 | if (repeatedGroup_.Count > 0) {
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2782 | output.WriteArray(pbd::FieldType.Group, 46, "repeatedgroup", repeatedGroup_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2783 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2784 | if (repeatedNestedMessage_.Count > 0) {
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2785 | output.WriteArray(pbd::FieldType.Message, 48, "repeated_nested_message", repeatedNestedMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2786 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2787 | if (repeatedForeignMessage_.Count > 0) {
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2788 | output.WriteArray(pbd::FieldType.Message, 49, "repeated_foreign_message", repeatedForeignMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2789 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2790 | if (repeatedImportMessage_.Count > 0) {
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2791 | output.WriteArray(pbd::FieldType.Message, 50, "repeated_import_message", repeatedImportMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2792 | }
|
| 2793 | if (repeatedNestedEnum_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2794 | output.WriteArray(pbd::FieldType.Enum, 51, "repeated_nested_enum", repeatedNestedEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2795 | }
|
| 2796 | if (repeatedForeignEnum_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2797 | output.WriteArray(pbd::FieldType.Enum, 52, "repeated_foreign_enum", repeatedForeignEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2798 | }
|
| 2799 | if (repeatedImportEnum_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2800 | output.WriteArray(pbd::FieldType.Enum, 53, "repeated_import_enum", repeatedImportEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2801 | }
|
| 2802 | if (repeatedStringPiece_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2803 | output.WriteArray(pbd::FieldType.String, 54, "repeated_string_piece", repeatedStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2804 | }
|
| 2805 | if (repeatedCord_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2806 | output.WriteArray(pbd::FieldType.String, 55, "repeated_cord", repeatedCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2807 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2808 | if (hasDefaultInt32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2809 | output.WriteInt32(61, "default_int32", DefaultInt32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2810 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2811 | if (hasDefaultInt64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2812 | output.WriteInt64(62, "default_int64", DefaultInt64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2813 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2814 | if (hasDefaultUint32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2815 | output.WriteUInt32(63, "default_uint32", DefaultUint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2816 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2817 | if (hasDefaultUint64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2818 | output.WriteUInt64(64, "default_uint64", DefaultUint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2819 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2820 | if (hasDefaultSint32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2821 | output.WriteSInt32(65, "default_sint32", DefaultSint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2822 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2823 | if (hasDefaultSint64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2824 | output.WriteSInt64(66, "default_sint64", DefaultSint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2825 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2826 | if (hasDefaultFixed32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2827 | output.WriteFixed32(67, "default_fixed32", DefaultFixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2828 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2829 | if (hasDefaultFixed64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2830 | output.WriteFixed64(68, "default_fixed64", DefaultFixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2831 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2832 | if (hasDefaultSfixed32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2833 | output.WriteSFixed32(69, "default_sfixed32", DefaultSfixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2834 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2835 | if (hasDefaultSfixed64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2836 | output.WriteSFixed64(70, "default_sfixed64", DefaultSfixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2837 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2838 | if (hasDefaultFloat) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2839 | output.WriteFloat(71, "default_float", DefaultFloat);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2840 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2841 | if (hasDefaultDouble) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2842 | output.WriteDouble(72, "default_double", DefaultDouble);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2843 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2844 | if (hasDefaultBool) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2845 | output.WriteBool(73, "default_bool", DefaultBool);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2846 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2847 | if (hasDefaultString) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2848 | output.WriteString(74, "default_string", DefaultString);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2849 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2850 | if (hasDefaultBytes) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2851 | output.WriteBytes(75, "default_bytes", DefaultBytes);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2852 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2853 | if (hasDefaultNestedEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2854 | output.WriteEnum(81, "default_nested_enum", (int) DefaultNestedEnum, DefaultNestedEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2855 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2856 | if (hasDefaultForeignEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2857 | output.WriteEnum(82, "default_foreign_enum", (int) DefaultForeignEnum, DefaultForeignEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2858 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2859 | if (hasDefaultImportEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2860 | output.WriteEnum(83, "default_import_enum", (int) DefaultImportEnum, DefaultImportEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2861 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2862 | if (hasDefaultStringPiece) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2863 | output.WriteString(84, "default_string_piece", DefaultStringPiece);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2864 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2865 | if (hasDefaultCord) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2866 | output.WriteString(85, "default_cord", DefaultCord);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2867 | }
|
| 2868 | }
|
| 2869 |
|
| 2870 | private int memoizedSerializedSize = -1;
|
| 2871 | public override int SerializedSize {
|
| 2872 | get {
|
| 2873 | int size = memoizedSerializedSize;
|
| 2874 | if (size != -1) return size;
|
| 2875 |
|
| 2876 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2877 | if (hasOptionalInt32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2878 | size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
|
| 2879 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2880 | if (hasOptionalInt64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2881 | size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
|
| 2882 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2883 | if (hasOptionalUint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2884 | size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
|
| 2885 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2886 | if (hasOptionalUint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2887 | size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
|
| 2888 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2889 | if (hasOptionalSint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2890 | size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
|
| 2891 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2892 | if (hasOptionalSint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2893 | size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
|
| 2894 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2895 | if (hasOptionalFixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2896 | size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
|
| 2897 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2898 | if (hasOptionalFixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2899 | size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
|
| 2900 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2901 | if (hasOptionalSfixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2902 | size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
|
| 2903 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2904 | if (hasOptionalSfixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2905 | size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
|
| 2906 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2907 | if (hasOptionalFloat) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2908 | size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
|
| 2909 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2910 | if (hasOptionalDouble) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2911 | size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
|
| 2912 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2913 | if (hasOptionalBool) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2914 | size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
|
| 2915 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2916 | if (hasOptionalString) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2917 | size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
|
| 2918 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2919 | if (hasOptionalBytes) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2920 | size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
|
| 2921 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2922 | if (hasOptionalGroup) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2923 | size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
|
| 2924 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2925 | if (hasOptionalNestedMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2926 | size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
|
| 2927 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2928 | if (hasOptionalForeignMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2929 | size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
|
| 2930 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2931 | if (hasOptionalImportMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2932 | size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
|
| 2933 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2934 | if (hasOptionalNestedEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2935 | size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum);
|
| 2936 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2937 | if (hasOptionalForeignEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2938 | size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum);
|
| 2939 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2940 | if (hasOptionalImportEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2941 | size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum);
|
| 2942 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2943 | if (hasOptionalStringPiece) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2944 | size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
|
| 2945 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2946 | if (hasOptionalCord) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2947 | size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
|
| 2948 | }
|
| 2949 | {
|
| 2950 | int dataSize = 0;
|
| 2951 | foreach (int element in RepeatedInt32List) {
|
| 2952 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 2953 | }
|
| 2954 | size += dataSize;
|
| 2955 | size += 2 * repeatedInt32_.Count;
|
| 2956 | }
|
| 2957 | {
|
| 2958 | int dataSize = 0;
|
| 2959 | foreach (long element in RepeatedInt64List) {
|
| 2960 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
|
| 2961 | }
|
| 2962 | size += dataSize;
|
| 2963 | size += 2 * repeatedInt64_.Count;
|
| 2964 | }
|
| 2965 | {
|
| 2966 | int dataSize = 0;
|
| 2967 | foreach (uint element in RepeatedUint32List) {
|
| 2968 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
|
| 2969 | }
|
| 2970 | size += dataSize;
|
| 2971 | size += 2 * repeatedUint32_.Count;
|
| 2972 | }
|
| 2973 | {
|
| 2974 | int dataSize = 0;
|
| 2975 | foreach (ulong element in RepeatedUint64List) {
|
| 2976 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
|
| 2977 | }
|
| 2978 | size += dataSize;
|
| 2979 | size += 2 * repeatedUint64_.Count;
|
| 2980 | }
|
| 2981 | {
|
| 2982 | int dataSize = 0;
|
| 2983 | foreach (int element in RepeatedSint32List) {
|
| 2984 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
|
| 2985 | }
|
| 2986 | size += dataSize;
|
| 2987 | size += 2 * repeatedSint32_.Count;
|
| 2988 | }
|
| 2989 | {
|
| 2990 | int dataSize = 0;
|
| 2991 | foreach (long element in RepeatedSint64List) {
|
| 2992 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
|
| 2993 | }
|
| 2994 | size += dataSize;
|
| 2995 | size += 2 * repeatedSint64_.Count;
|
| 2996 | }
|
| 2997 | {
|
| 2998 | int dataSize = 0;
|
| 2999 | dataSize = 4 * repeatedFixed32_.Count;
|
| 3000 | size += dataSize;
|
| 3001 | size += 2 * repeatedFixed32_.Count;
|
| 3002 | }
|
| 3003 | {
|
| 3004 | int dataSize = 0;
|
| 3005 | dataSize = 8 * repeatedFixed64_.Count;
|
| 3006 | size += dataSize;
|
| 3007 | size += 2 * repeatedFixed64_.Count;
|
| 3008 | }
|
| 3009 | {
|
| 3010 | int dataSize = 0;
|
| 3011 | dataSize = 4 * repeatedSfixed32_.Count;
|
| 3012 | size += dataSize;
|
| 3013 | size += 2 * repeatedSfixed32_.Count;
|
| 3014 | }
|
| 3015 | {
|
| 3016 | int dataSize = 0;
|
| 3017 | dataSize = 8 * repeatedSfixed64_.Count;
|
| 3018 | size += dataSize;
|
| 3019 | size += 2 * repeatedSfixed64_.Count;
|
| 3020 | }
|
| 3021 | {
|
| 3022 | int dataSize = 0;
|
| 3023 | dataSize = 4 * repeatedFloat_.Count;
|
| 3024 | size += dataSize;
|
| 3025 | size += 2 * repeatedFloat_.Count;
|
| 3026 | }
|
| 3027 | {
|
| 3028 | int dataSize = 0;
|
| 3029 | dataSize = 8 * repeatedDouble_.Count;
|
| 3030 | size += dataSize;
|
| 3031 | size += 2 * repeatedDouble_.Count;
|
| 3032 | }
|
| 3033 | {
|
| 3034 | int dataSize = 0;
|
| 3035 | dataSize = 1 * repeatedBool_.Count;
|
| 3036 | size += dataSize;
|
| 3037 | size += 2 * repeatedBool_.Count;
|
| 3038 | }
|
| 3039 | {
|
| 3040 | int dataSize = 0;
|
| 3041 | foreach (string element in RepeatedStringList) {
|
| 3042 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 3043 | }
|
| 3044 | size += dataSize;
|
| 3045 | size += 2 * repeatedString_.Count;
|
| 3046 | }
|
| 3047 | {
|
| 3048 | int dataSize = 0;
|
| 3049 | foreach (pb::ByteString element in RepeatedBytesList) {
|
| 3050 | dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
|
| 3051 | }
|
| 3052 | size += dataSize;
|
| 3053 | size += 2 * repeatedBytes_.Count;
|
| 3054 | }
|
| 3055 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup element in RepeatedGroupList) {
|
| 3056 | size += pb::CodedOutputStream.ComputeGroupSize(46, element);
|
| 3057 | }
|
| 3058 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage element in RepeatedNestedMessageList) {
|
| 3059 | size += pb::CodedOutputStream.ComputeMessageSize(48, element);
|
| 3060 | }
|
| 3061 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite element in RepeatedForeignMessageList) {
|
| 3062 | size += pb::CodedOutputStream.ComputeMessageSize(49, element);
|
| 3063 | }
|
| 3064 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessageLite element in RepeatedImportMessageList) {
|
| 3065 | size += pb::CodedOutputStream.ComputeMessageSize(50, element);
|
| 3066 | }
|
| 3067 | {
|
| 3068 | int dataSize = 0;
|
| 3069 | if (repeatedNestedEnum_.Count > 0) {
|
| 3070 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum element in repeatedNestedEnum_) {
|
| 3071 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 3072 | }
|
| 3073 | size += dataSize;
|
| 3074 | size += 2 * repeatedNestedEnum_.Count;
|
| 3075 | }
|
| 3076 | }
|
| 3077 | {
|
| 3078 | int dataSize = 0;
|
| 3079 | if (repeatedForeignEnum_.Count > 0) {
|
| 3080 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in repeatedForeignEnum_) {
|
| 3081 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 3082 | }
|
| 3083 | size += dataSize;
|
| 3084 | size += 2 * repeatedForeignEnum_.Count;
|
| 3085 | }
|
| 3086 | }
|
| 3087 | {
|
| 3088 | int dataSize = 0;
|
| 3089 | if (repeatedImportEnum_.Count > 0) {
|
| 3090 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnumLite element in repeatedImportEnum_) {
|
| 3091 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 3092 | }
|
| 3093 | size += dataSize;
|
| 3094 | size += 2 * repeatedImportEnum_.Count;
|
| 3095 | }
|
| 3096 | }
|
| 3097 | {
|
| 3098 | int dataSize = 0;
|
| 3099 | foreach (string element in RepeatedStringPieceList) {
|
| 3100 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 3101 | }
|
| 3102 | size += dataSize;
|
| 3103 | size += 2 * repeatedStringPiece_.Count;
|
| 3104 | }
|
| 3105 | {
|
| 3106 | int dataSize = 0;
|
| 3107 | foreach (string element in RepeatedCordList) {
|
| 3108 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 3109 | }
|
| 3110 | size += dataSize;
|
| 3111 | size += 2 * repeatedCord_.Count;
|
| 3112 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3113 | if (hasDefaultInt32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3114 | size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
|
| 3115 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3116 | if (hasDefaultInt64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3117 | size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
|
| 3118 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3119 | if (hasDefaultUint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3120 | size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
|
| 3121 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3122 | if (hasDefaultUint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3123 | size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
|
| 3124 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3125 | if (hasDefaultSint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3126 | size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
|
| 3127 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3128 | if (hasDefaultSint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3129 | size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
|
| 3130 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3131 | if (hasDefaultFixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3132 | size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
|
| 3133 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3134 | if (hasDefaultFixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3135 | size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
|
| 3136 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3137 | if (hasDefaultSfixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3138 | size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
|
| 3139 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3140 | if (hasDefaultSfixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3141 | size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
|
| 3142 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3143 | if (hasDefaultFloat) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3144 | size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
|
| 3145 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3146 | if (hasDefaultDouble) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3147 | size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
|
| 3148 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3149 | if (hasDefaultBool) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3150 | size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
|
| 3151 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3152 | if (hasDefaultString) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3153 | size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
|
| 3154 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3155 | if (hasDefaultBytes) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3156 | size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
|
| 3157 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3158 | if (hasDefaultNestedEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3159 | size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum);
|
| 3160 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3161 | if (hasDefaultForeignEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3162 | size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum);
|
| 3163 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3164 | if (hasDefaultImportEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3165 | size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum);
|
| 3166 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3167 | if (hasDefaultStringPiece) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3168 | size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
|
| 3169 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3170 | if (hasDefaultCord) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3171 | size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
|
| 3172 | }
|
| 3173 | memoizedSerializedSize = size;
|
| 3174 | return size;
|
| 3175 | }
|
| 3176 | }
|
| 3177 |
|
| 3178 | #region Lite runtime methods
|
| 3179 | public override int GetHashCode() {
|
| 3180 | int hash = GetType().GetHashCode();
|
| 3181 | if (hasOptionalInt32) hash ^= optionalInt32_.GetHashCode();
|
| 3182 | if (hasOptionalInt64) hash ^= optionalInt64_.GetHashCode();
|
| 3183 | if (hasOptionalUint32) hash ^= optionalUint32_.GetHashCode();
|
| 3184 | if (hasOptionalUint64) hash ^= optionalUint64_.GetHashCode();
|
| 3185 | if (hasOptionalSint32) hash ^= optionalSint32_.GetHashCode();
|
| 3186 | if (hasOptionalSint64) hash ^= optionalSint64_.GetHashCode();
|
| 3187 | if (hasOptionalFixed32) hash ^= optionalFixed32_.GetHashCode();
|
| 3188 | if (hasOptionalFixed64) hash ^= optionalFixed64_.GetHashCode();
|
| 3189 | if (hasOptionalSfixed32) hash ^= optionalSfixed32_.GetHashCode();
|
| 3190 | if (hasOptionalSfixed64) hash ^= optionalSfixed64_.GetHashCode();
|
| 3191 | if (hasOptionalFloat) hash ^= optionalFloat_.GetHashCode();
|
| 3192 | if (hasOptionalDouble) hash ^= optionalDouble_.GetHashCode();
|
| 3193 | if (hasOptionalBool) hash ^= optionalBool_.GetHashCode();
|
| 3194 | if (hasOptionalString) hash ^= optionalString_.GetHashCode();
|
| 3195 | if (hasOptionalBytes) hash ^= optionalBytes_.GetHashCode();
|
| 3196 | if (hasOptionalGroup) hash ^= optionalGroup_.GetHashCode();
|
| 3197 | if (hasOptionalNestedMessage) hash ^= optionalNestedMessage_.GetHashCode();
|
| 3198 | if (hasOptionalForeignMessage) hash ^= optionalForeignMessage_.GetHashCode();
|
| 3199 | if (hasOptionalImportMessage) hash ^= optionalImportMessage_.GetHashCode();
|
| 3200 | if (hasOptionalNestedEnum) hash ^= optionalNestedEnum_.GetHashCode();
|
| 3201 | if (hasOptionalForeignEnum) hash ^= optionalForeignEnum_.GetHashCode();
|
| 3202 | if (hasOptionalImportEnum) hash ^= optionalImportEnum_.GetHashCode();
|
| 3203 | if (hasOptionalStringPiece) hash ^= optionalStringPiece_.GetHashCode();
|
| 3204 | if (hasOptionalCord) hash ^= optionalCord_.GetHashCode();
|
| 3205 | foreach(int i in repeatedInt32_)
|
| 3206 | hash ^= i.GetHashCode();
|
| 3207 | foreach(long i in repeatedInt64_)
|
| 3208 | hash ^= i.GetHashCode();
|
| 3209 | foreach(uint i in repeatedUint32_)
|
| 3210 | hash ^= i.GetHashCode();
|
| 3211 | foreach(ulong i in repeatedUint64_)
|
| 3212 | hash ^= i.GetHashCode();
|
| 3213 | foreach(int i in repeatedSint32_)
|
| 3214 | hash ^= i.GetHashCode();
|
| 3215 | foreach(long i in repeatedSint64_)
|
| 3216 | hash ^= i.GetHashCode();
|
| 3217 | foreach(uint i in repeatedFixed32_)
|
| 3218 | hash ^= i.GetHashCode();
|
| 3219 | foreach(ulong i in repeatedFixed64_)
|
| 3220 | hash ^= i.GetHashCode();
|
| 3221 | foreach(int i in repeatedSfixed32_)
|
| 3222 | hash ^= i.GetHashCode();
|
| 3223 | foreach(long i in repeatedSfixed64_)
|
| 3224 | hash ^= i.GetHashCode();
|
| 3225 | foreach(float i in repeatedFloat_)
|
| 3226 | hash ^= i.GetHashCode();
|
| 3227 | foreach(double i in repeatedDouble_)
|
| 3228 | hash ^= i.GetHashCode();
|
| 3229 | foreach(bool i in repeatedBool_)
|
| 3230 | hash ^= i.GetHashCode();
|
| 3231 | foreach(string i in repeatedString_)
|
| 3232 | hash ^= i.GetHashCode();
|
| 3233 | foreach(pb::ByteString i in repeatedBytes_)
|
| 3234 | hash ^= i.GetHashCode();
|
| 3235 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup i in repeatedGroup_)
|
| 3236 | hash ^= i.GetHashCode();
|
| 3237 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage i in repeatedNestedMessage_)
|
| 3238 | hash ^= i.GetHashCode();
|
| 3239 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite i in repeatedForeignMessage_)
|
| 3240 | hash ^= i.GetHashCode();
|
| 3241 | foreach(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite i in repeatedImportMessage_)
|
| 3242 | hash ^= i.GetHashCode();
|
| 3243 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum i in repeatedNestedEnum_)
|
| 3244 | hash ^= i.GetHashCode();
|
| 3245 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in repeatedForeignEnum_)
|
| 3246 | hash ^= i.GetHashCode();
|
| 3247 | foreach(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite i in repeatedImportEnum_)
|
| 3248 | hash ^= i.GetHashCode();
|
| 3249 | foreach(string i in repeatedStringPiece_)
|
| 3250 | hash ^= i.GetHashCode();
|
| 3251 | foreach(string i in repeatedCord_)
|
| 3252 | hash ^= i.GetHashCode();
|
| 3253 | if (hasDefaultInt32) hash ^= defaultInt32_.GetHashCode();
|
| 3254 | if (hasDefaultInt64) hash ^= defaultInt64_.GetHashCode();
|
| 3255 | if (hasDefaultUint32) hash ^= defaultUint32_.GetHashCode();
|
| 3256 | if (hasDefaultUint64) hash ^= defaultUint64_.GetHashCode();
|
| 3257 | if (hasDefaultSint32) hash ^= defaultSint32_.GetHashCode();
|
| 3258 | if (hasDefaultSint64) hash ^= defaultSint64_.GetHashCode();
|
| 3259 | if (hasDefaultFixed32) hash ^= defaultFixed32_.GetHashCode();
|
| 3260 | if (hasDefaultFixed64) hash ^= defaultFixed64_.GetHashCode();
|
| 3261 | if (hasDefaultSfixed32) hash ^= defaultSfixed32_.GetHashCode();
|
| 3262 | if (hasDefaultSfixed64) hash ^= defaultSfixed64_.GetHashCode();
|
| 3263 | if (hasDefaultFloat) hash ^= defaultFloat_.GetHashCode();
|
| 3264 | if (hasDefaultDouble) hash ^= defaultDouble_.GetHashCode();
|
| 3265 | if (hasDefaultBool) hash ^= defaultBool_.GetHashCode();
|
| 3266 | if (hasDefaultString) hash ^= defaultString_.GetHashCode();
|
| 3267 | if (hasDefaultBytes) hash ^= defaultBytes_.GetHashCode();
|
| 3268 | if (hasDefaultNestedEnum) hash ^= defaultNestedEnum_.GetHashCode();
|
| 3269 | if (hasDefaultForeignEnum) hash ^= defaultForeignEnum_.GetHashCode();
|
| 3270 | if (hasDefaultImportEnum) hash ^= defaultImportEnum_.GetHashCode();
|
| 3271 | if (hasDefaultStringPiece) hash ^= defaultStringPiece_.GetHashCode();
|
| 3272 | if (hasDefaultCord) hash ^= defaultCord_.GetHashCode();
|
| 3273 | return hash;
|
| 3274 | }
|
| 3275 |
|
| 3276 | public override bool Equals(object obj) {
|
| 3277 | TestAllTypesLite other = obj as TestAllTypesLite;
|
| 3278 | if (other == null) return false;
|
| 3279 | if (hasOptionalInt32 != other.hasOptionalInt32 || (hasOptionalInt32 && !optionalInt32_.Equals(other.optionalInt32_))) return false;
|
| 3280 | if (hasOptionalInt64 != other.hasOptionalInt64 || (hasOptionalInt64 && !optionalInt64_.Equals(other.optionalInt64_))) return false;
|
| 3281 | if (hasOptionalUint32 != other.hasOptionalUint32 || (hasOptionalUint32 && !optionalUint32_.Equals(other.optionalUint32_))) return false;
|
| 3282 | if (hasOptionalUint64 != other.hasOptionalUint64 || (hasOptionalUint64 && !optionalUint64_.Equals(other.optionalUint64_))) return false;
|
| 3283 | if (hasOptionalSint32 != other.hasOptionalSint32 || (hasOptionalSint32 && !optionalSint32_.Equals(other.optionalSint32_))) return false;
|
| 3284 | if (hasOptionalSint64 != other.hasOptionalSint64 || (hasOptionalSint64 && !optionalSint64_.Equals(other.optionalSint64_))) return false;
|
| 3285 | if (hasOptionalFixed32 != other.hasOptionalFixed32 || (hasOptionalFixed32 && !optionalFixed32_.Equals(other.optionalFixed32_))) return false;
|
| 3286 | if (hasOptionalFixed64 != other.hasOptionalFixed64 || (hasOptionalFixed64 && !optionalFixed64_.Equals(other.optionalFixed64_))) return false;
|
| 3287 | if (hasOptionalSfixed32 != other.hasOptionalSfixed32 || (hasOptionalSfixed32 && !optionalSfixed32_.Equals(other.optionalSfixed32_))) return false;
|
| 3288 | if (hasOptionalSfixed64 != other.hasOptionalSfixed64 || (hasOptionalSfixed64 && !optionalSfixed64_.Equals(other.optionalSfixed64_))) return false;
|
| 3289 | if (hasOptionalFloat != other.hasOptionalFloat || (hasOptionalFloat && !optionalFloat_.Equals(other.optionalFloat_))) return false;
|
| 3290 | if (hasOptionalDouble != other.hasOptionalDouble || (hasOptionalDouble && !optionalDouble_.Equals(other.optionalDouble_))) return false;
|
| 3291 | if (hasOptionalBool != other.hasOptionalBool || (hasOptionalBool && !optionalBool_.Equals(other.optionalBool_))) return false;
|
| 3292 | if (hasOptionalString != other.hasOptionalString || (hasOptionalString && !optionalString_.Equals(other.optionalString_))) return false;
|
| 3293 | if (hasOptionalBytes != other.hasOptionalBytes || (hasOptionalBytes && !optionalBytes_.Equals(other.optionalBytes_))) return false;
|
| 3294 | if (hasOptionalGroup != other.hasOptionalGroup || (hasOptionalGroup && !optionalGroup_.Equals(other.optionalGroup_))) return false;
|
| 3295 | if (hasOptionalNestedMessage != other.hasOptionalNestedMessage || (hasOptionalNestedMessage && !optionalNestedMessage_.Equals(other.optionalNestedMessage_))) return false;
|
| 3296 | if (hasOptionalForeignMessage != other.hasOptionalForeignMessage || (hasOptionalForeignMessage && !optionalForeignMessage_.Equals(other.optionalForeignMessage_))) return false;
|
| 3297 | if (hasOptionalImportMessage != other.hasOptionalImportMessage || (hasOptionalImportMessage && !optionalImportMessage_.Equals(other.optionalImportMessage_))) return false;
|
| 3298 | if (hasOptionalNestedEnum != other.hasOptionalNestedEnum || (hasOptionalNestedEnum && !optionalNestedEnum_.Equals(other.optionalNestedEnum_))) return false;
|
| 3299 | if (hasOptionalForeignEnum != other.hasOptionalForeignEnum || (hasOptionalForeignEnum && !optionalForeignEnum_.Equals(other.optionalForeignEnum_))) return false;
|
| 3300 | if (hasOptionalImportEnum != other.hasOptionalImportEnum || (hasOptionalImportEnum && !optionalImportEnum_.Equals(other.optionalImportEnum_))) return false;
|
| 3301 | if (hasOptionalStringPiece != other.hasOptionalStringPiece || (hasOptionalStringPiece && !optionalStringPiece_.Equals(other.optionalStringPiece_))) return false;
|
| 3302 | if (hasOptionalCord != other.hasOptionalCord || (hasOptionalCord && !optionalCord_.Equals(other.optionalCord_))) return false;
|
| 3303 | if(repeatedInt32_.Count != other.repeatedInt32_.Count) return false;
|
| 3304 | for(int ix=0; ix < repeatedInt32_.Count; ix++)
|
| 3305 | if(!repeatedInt32_[ix].Equals(other.repeatedInt32_[ix])) return false;
|
| 3306 | if(repeatedInt64_.Count != other.repeatedInt64_.Count) return false;
|
| 3307 | for(int ix=0; ix < repeatedInt64_.Count; ix++)
|
| 3308 | if(!repeatedInt64_[ix].Equals(other.repeatedInt64_[ix])) return false;
|
| 3309 | if(repeatedUint32_.Count != other.repeatedUint32_.Count) return false;
|
| 3310 | for(int ix=0; ix < repeatedUint32_.Count; ix++)
|
| 3311 | if(!repeatedUint32_[ix].Equals(other.repeatedUint32_[ix])) return false;
|
| 3312 | if(repeatedUint64_.Count != other.repeatedUint64_.Count) return false;
|
| 3313 | for(int ix=0; ix < repeatedUint64_.Count; ix++)
|
| 3314 | if(!repeatedUint64_[ix].Equals(other.repeatedUint64_[ix])) return false;
|
| 3315 | if(repeatedSint32_.Count != other.repeatedSint32_.Count) return false;
|
| 3316 | for(int ix=0; ix < repeatedSint32_.Count; ix++)
|
| 3317 | if(!repeatedSint32_[ix].Equals(other.repeatedSint32_[ix])) return false;
|
| 3318 | if(repeatedSint64_.Count != other.repeatedSint64_.Count) return false;
|
| 3319 | for(int ix=0; ix < repeatedSint64_.Count; ix++)
|
| 3320 | if(!repeatedSint64_[ix].Equals(other.repeatedSint64_[ix])) return false;
|
| 3321 | if(repeatedFixed32_.Count != other.repeatedFixed32_.Count) return false;
|
| 3322 | for(int ix=0; ix < repeatedFixed32_.Count; ix++)
|
| 3323 | if(!repeatedFixed32_[ix].Equals(other.repeatedFixed32_[ix])) return false;
|
| 3324 | if(repeatedFixed64_.Count != other.repeatedFixed64_.Count) return false;
|
| 3325 | for(int ix=0; ix < repeatedFixed64_.Count; ix++)
|
| 3326 | if(!repeatedFixed64_[ix].Equals(other.repeatedFixed64_[ix])) return false;
|
| 3327 | if(repeatedSfixed32_.Count != other.repeatedSfixed32_.Count) return false;
|
| 3328 | for(int ix=0; ix < repeatedSfixed32_.Count; ix++)
|
| 3329 | if(!repeatedSfixed32_[ix].Equals(other.repeatedSfixed32_[ix])) return false;
|
| 3330 | if(repeatedSfixed64_.Count != other.repeatedSfixed64_.Count) return false;
|
| 3331 | for(int ix=0; ix < repeatedSfixed64_.Count; ix++)
|
| 3332 | if(!repeatedSfixed64_[ix].Equals(other.repeatedSfixed64_[ix])) return false;
|
| 3333 | if(repeatedFloat_.Count != other.repeatedFloat_.Count) return false;
|
| 3334 | for(int ix=0; ix < repeatedFloat_.Count; ix++)
|
| 3335 | if(!repeatedFloat_[ix].Equals(other.repeatedFloat_[ix])) return false;
|
| 3336 | if(repeatedDouble_.Count != other.repeatedDouble_.Count) return false;
|
| 3337 | for(int ix=0; ix < repeatedDouble_.Count; ix++)
|
| 3338 | if(!repeatedDouble_[ix].Equals(other.repeatedDouble_[ix])) return false;
|
| 3339 | if(repeatedBool_.Count != other.repeatedBool_.Count) return false;
|
| 3340 | for(int ix=0; ix < repeatedBool_.Count; ix++)
|
| 3341 | if(!repeatedBool_[ix].Equals(other.repeatedBool_[ix])) return false;
|
| 3342 | if(repeatedString_.Count != other.repeatedString_.Count) return false;
|
| 3343 | for(int ix=0; ix < repeatedString_.Count; ix++)
|
| 3344 | if(!repeatedString_[ix].Equals(other.repeatedString_[ix])) return false;
|
| 3345 | if(repeatedBytes_.Count != other.repeatedBytes_.Count) return false;
|
| 3346 | for(int ix=0; ix < repeatedBytes_.Count; ix++)
|
| 3347 | if(!repeatedBytes_[ix].Equals(other.repeatedBytes_[ix])) return false;
|
| 3348 | if(repeatedGroup_.Count != other.repeatedGroup_.Count) return false;
|
| 3349 | for(int ix=0; ix < repeatedGroup_.Count; ix++)
|
| 3350 | if(!repeatedGroup_[ix].Equals(other.repeatedGroup_[ix])) return false;
|
| 3351 | if(repeatedNestedMessage_.Count != other.repeatedNestedMessage_.Count) return false;
|
| 3352 | for(int ix=0; ix < repeatedNestedMessage_.Count; ix++)
|
| 3353 | if(!repeatedNestedMessage_[ix].Equals(other.repeatedNestedMessage_[ix])) return false;
|
| 3354 | if(repeatedForeignMessage_.Count != other.repeatedForeignMessage_.Count) return false;
|
| 3355 | for(int ix=0; ix < repeatedForeignMessage_.Count; ix++)
|
| 3356 | if(!repeatedForeignMessage_[ix].Equals(other.repeatedForeignMessage_[ix])) return false;
|
| 3357 | if(repeatedImportMessage_.Count != other.repeatedImportMessage_.Count) return false;
|
| 3358 | for(int ix=0; ix < repeatedImportMessage_.Count; ix++)
|
| 3359 | if(!repeatedImportMessage_[ix].Equals(other.repeatedImportMessage_[ix])) return false;
|
| 3360 | if(repeatedNestedEnum_.Count != other.repeatedNestedEnum_.Count) return false;
|
| 3361 | for(int ix=0; ix < repeatedNestedEnum_.Count; ix++)
|
| 3362 | if(!repeatedNestedEnum_[ix].Equals(other.repeatedNestedEnum_[ix])) return false;
|
| 3363 | if(repeatedForeignEnum_.Count != other.repeatedForeignEnum_.Count) return false;
|
| 3364 | for(int ix=0; ix < repeatedForeignEnum_.Count; ix++)
|
| 3365 | if(!repeatedForeignEnum_[ix].Equals(other.repeatedForeignEnum_[ix])) return false;
|
| 3366 | if(repeatedImportEnum_.Count != other.repeatedImportEnum_.Count) return false;
|
| 3367 | for(int ix=0; ix < repeatedImportEnum_.Count; ix++)
|
| 3368 | if(!repeatedImportEnum_[ix].Equals(other.repeatedImportEnum_[ix])) return false;
|
| 3369 | if(repeatedStringPiece_.Count != other.repeatedStringPiece_.Count) return false;
|
| 3370 | for(int ix=0; ix < repeatedStringPiece_.Count; ix++)
|
| 3371 | if(!repeatedStringPiece_[ix].Equals(other.repeatedStringPiece_[ix])) return false;
|
| 3372 | if(repeatedCord_.Count != other.repeatedCord_.Count) return false;
|
| 3373 | for(int ix=0; ix < repeatedCord_.Count; ix++)
|
| 3374 | if(!repeatedCord_[ix].Equals(other.repeatedCord_[ix])) return false;
|
| 3375 | if (hasDefaultInt32 != other.hasDefaultInt32 || (hasDefaultInt32 && !defaultInt32_.Equals(other.defaultInt32_))) return false;
|
| 3376 | if (hasDefaultInt64 != other.hasDefaultInt64 || (hasDefaultInt64 && !defaultInt64_.Equals(other.defaultInt64_))) return false;
|
| 3377 | if (hasDefaultUint32 != other.hasDefaultUint32 || (hasDefaultUint32 && !defaultUint32_.Equals(other.defaultUint32_))) return false;
|
| 3378 | if (hasDefaultUint64 != other.hasDefaultUint64 || (hasDefaultUint64 && !defaultUint64_.Equals(other.defaultUint64_))) return false;
|
| 3379 | if (hasDefaultSint32 != other.hasDefaultSint32 || (hasDefaultSint32 && !defaultSint32_.Equals(other.defaultSint32_))) return false;
|
| 3380 | if (hasDefaultSint64 != other.hasDefaultSint64 || (hasDefaultSint64 && !defaultSint64_.Equals(other.defaultSint64_))) return false;
|
| 3381 | if (hasDefaultFixed32 != other.hasDefaultFixed32 || (hasDefaultFixed32 && !defaultFixed32_.Equals(other.defaultFixed32_))) return false;
|
| 3382 | if (hasDefaultFixed64 != other.hasDefaultFixed64 || (hasDefaultFixed64 && !defaultFixed64_.Equals(other.defaultFixed64_))) return false;
|
| 3383 | if (hasDefaultSfixed32 != other.hasDefaultSfixed32 || (hasDefaultSfixed32 && !defaultSfixed32_.Equals(other.defaultSfixed32_))) return false;
|
| 3384 | if (hasDefaultSfixed64 != other.hasDefaultSfixed64 || (hasDefaultSfixed64 && !defaultSfixed64_.Equals(other.defaultSfixed64_))) return false;
|
| 3385 | if (hasDefaultFloat != other.hasDefaultFloat || (hasDefaultFloat && !defaultFloat_.Equals(other.defaultFloat_))) return false;
|
| 3386 | if (hasDefaultDouble != other.hasDefaultDouble || (hasDefaultDouble && !defaultDouble_.Equals(other.defaultDouble_))) return false;
|
| 3387 | if (hasDefaultBool != other.hasDefaultBool || (hasDefaultBool && !defaultBool_.Equals(other.defaultBool_))) return false;
|
| 3388 | if (hasDefaultString != other.hasDefaultString || (hasDefaultString && !defaultString_.Equals(other.defaultString_))) return false;
|
| 3389 | if (hasDefaultBytes != other.hasDefaultBytes || (hasDefaultBytes && !defaultBytes_.Equals(other.defaultBytes_))) return false;
|
| 3390 | if (hasDefaultNestedEnum != other.hasDefaultNestedEnum || (hasDefaultNestedEnum && !defaultNestedEnum_.Equals(other.defaultNestedEnum_))) return false;
|
| 3391 | if (hasDefaultForeignEnum != other.hasDefaultForeignEnum || (hasDefaultForeignEnum && !defaultForeignEnum_.Equals(other.defaultForeignEnum_))) return false;
|
| 3392 | if (hasDefaultImportEnum != other.hasDefaultImportEnum || (hasDefaultImportEnum && !defaultImportEnum_.Equals(other.defaultImportEnum_))) return false;
|
| 3393 | if (hasDefaultStringPiece != other.hasDefaultStringPiece || (hasDefaultStringPiece && !defaultStringPiece_.Equals(other.defaultStringPiece_))) return false;
|
| 3394 | if (hasDefaultCord != other.hasDefaultCord || (hasDefaultCord && !defaultCord_.Equals(other.defaultCord_))) return false;
|
| 3395 | return true;
|
| 3396 | }
|
| 3397 |
|
| 3398 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 3399 | PrintField("optional_int32", hasOptionalInt32, optionalInt32_, writer);
|
| 3400 | PrintField("optional_int64", hasOptionalInt64, optionalInt64_, writer);
|
| 3401 | PrintField("optional_uint32", hasOptionalUint32, optionalUint32_, writer);
|
| 3402 | PrintField("optional_uint64", hasOptionalUint64, optionalUint64_, writer);
|
| 3403 | PrintField("optional_sint32", hasOptionalSint32, optionalSint32_, writer);
|
| 3404 | PrintField("optional_sint64", hasOptionalSint64, optionalSint64_, writer);
|
| 3405 | PrintField("optional_fixed32", hasOptionalFixed32, optionalFixed32_, writer);
|
| 3406 | PrintField("optional_fixed64", hasOptionalFixed64, optionalFixed64_, writer);
|
| 3407 | PrintField("optional_sfixed32", hasOptionalSfixed32, optionalSfixed32_, writer);
|
| 3408 | PrintField("optional_sfixed64", hasOptionalSfixed64, optionalSfixed64_, writer);
|
| 3409 | PrintField("optional_float", hasOptionalFloat, optionalFloat_, writer);
|
| 3410 | PrintField("optional_double", hasOptionalDouble, optionalDouble_, writer);
|
| 3411 | PrintField("optional_bool", hasOptionalBool, optionalBool_, writer);
|
| 3412 | PrintField("optional_string", hasOptionalString, optionalString_, writer);
|
| 3413 | PrintField("optional_bytes", hasOptionalBytes, optionalBytes_, writer);
|
| 3414 | PrintField("OptionalGroup", hasOptionalGroup, optionalGroup_, writer);
|
| 3415 | PrintField("optional_nested_message", hasOptionalNestedMessage, optionalNestedMessage_, writer);
|
| 3416 | PrintField("optional_foreign_message", hasOptionalForeignMessage, optionalForeignMessage_, writer);
|
| 3417 | PrintField("optional_import_message", hasOptionalImportMessage, optionalImportMessage_, writer);
|
| 3418 | PrintField("optional_nested_enum", hasOptionalNestedEnum, optionalNestedEnum_, writer);
|
| 3419 | PrintField("optional_foreign_enum", hasOptionalForeignEnum, optionalForeignEnum_, writer);
|
| 3420 | PrintField("optional_import_enum", hasOptionalImportEnum, optionalImportEnum_, writer);
|
| 3421 | PrintField("optional_string_piece", hasOptionalStringPiece, optionalStringPiece_, writer);
|
| 3422 | PrintField("optional_cord", hasOptionalCord, optionalCord_, writer);
|
| 3423 | PrintField("repeated_int32", repeatedInt32_, writer);
|
| 3424 | PrintField("repeated_int64", repeatedInt64_, writer);
|
| 3425 | PrintField("repeated_uint32", repeatedUint32_, writer);
|
| 3426 | PrintField("repeated_uint64", repeatedUint64_, writer);
|
| 3427 | PrintField("repeated_sint32", repeatedSint32_, writer);
|
| 3428 | PrintField("repeated_sint64", repeatedSint64_, writer);
|
| 3429 | PrintField("repeated_fixed32", repeatedFixed32_, writer);
|
| 3430 | PrintField("repeated_fixed64", repeatedFixed64_, writer);
|
| 3431 | PrintField("repeated_sfixed32", repeatedSfixed32_, writer);
|
| 3432 | PrintField("repeated_sfixed64", repeatedSfixed64_, writer);
|
| 3433 | PrintField("repeated_float", repeatedFloat_, writer);
|
| 3434 | PrintField("repeated_double", repeatedDouble_, writer);
|
| 3435 | PrintField("repeated_bool", repeatedBool_, writer);
|
| 3436 | PrintField("repeated_string", repeatedString_, writer);
|
| 3437 | PrintField("repeated_bytes", repeatedBytes_, writer);
|
| 3438 | PrintField("RepeatedGroup", repeatedGroup_, writer);
|
| 3439 | PrintField("repeated_nested_message", repeatedNestedMessage_, writer);
|
| 3440 | PrintField("repeated_foreign_message", repeatedForeignMessage_, writer);
|
| 3441 | PrintField("repeated_import_message", repeatedImportMessage_, writer);
|
| 3442 | PrintField("repeated_nested_enum", repeatedNestedEnum_, writer);
|
| 3443 | PrintField("repeated_foreign_enum", repeatedForeignEnum_, writer);
|
| 3444 | PrintField("repeated_import_enum", repeatedImportEnum_, writer);
|
| 3445 | PrintField("repeated_string_piece", repeatedStringPiece_, writer);
|
| 3446 | PrintField("repeated_cord", repeatedCord_, writer);
|
| 3447 | PrintField("default_int32", hasDefaultInt32, defaultInt32_, writer);
|
| 3448 | PrintField("default_int64", hasDefaultInt64, defaultInt64_, writer);
|
| 3449 | PrintField("default_uint32", hasDefaultUint32, defaultUint32_, writer);
|
| 3450 | PrintField("default_uint64", hasDefaultUint64, defaultUint64_, writer);
|
| 3451 | PrintField("default_sint32", hasDefaultSint32, defaultSint32_, writer);
|
| 3452 | PrintField("default_sint64", hasDefaultSint64, defaultSint64_, writer);
|
| 3453 | PrintField("default_fixed32", hasDefaultFixed32, defaultFixed32_, writer);
|
| 3454 | PrintField("default_fixed64", hasDefaultFixed64, defaultFixed64_, writer);
|
| 3455 | PrintField("default_sfixed32", hasDefaultSfixed32, defaultSfixed32_, writer);
|
| 3456 | PrintField("default_sfixed64", hasDefaultSfixed64, defaultSfixed64_, writer);
|
| 3457 | PrintField("default_float", hasDefaultFloat, defaultFloat_, writer);
|
| 3458 | PrintField("default_double", hasDefaultDouble, defaultDouble_, writer);
|
| 3459 | PrintField("default_bool", hasDefaultBool, defaultBool_, writer);
|
| 3460 | PrintField("default_string", hasDefaultString, defaultString_, writer);
|
| 3461 | PrintField("default_bytes", hasDefaultBytes, defaultBytes_, writer);
|
| 3462 | PrintField("default_nested_enum", hasDefaultNestedEnum, defaultNestedEnum_, writer);
|
| 3463 | PrintField("default_foreign_enum", hasDefaultForeignEnum, defaultForeignEnum_, writer);
|
| 3464 | PrintField("default_import_enum", hasDefaultImportEnum, defaultImportEnum_, writer);
|
| 3465 | PrintField("default_string_piece", hasDefaultStringPiece, defaultStringPiece_, writer);
|
| 3466 | PrintField("default_cord", hasDefaultCord, defaultCord_, writer);
|
| 3467 | }
|
| 3468 | #endregion
|
| 3469 |
|
| 3470 | public static TestAllTypesLite ParseFrom(pb::ByteString data) {
|
| 3471 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 3472 | }
|
| 3473 | public static TestAllTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 3474 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 3475 | }
|
| 3476 | public static TestAllTypesLite ParseFrom(byte[] data) {
|
| 3477 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 3478 | }
|
| 3479 | public static TestAllTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 3480 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 3481 | }
|
| 3482 | public static TestAllTypesLite ParseFrom(global::System.IO.Stream input) {
|
| 3483 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 3484 | }
|
| 3485 | public static TestAllTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 3486 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 3487 | }
|
| 3488 | public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 3489 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 3490 | }
|
| 3491 | public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 3492 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 3493 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3494 | public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3495 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 3496 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3497 | public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3498 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 3499 | }
|
| 3500 | public static Builder CreateBuilder() { return new Builder(); }
|
| 3501 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 3502 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 3503 | public static Builder CreateBuilder(TestAllTypesLite prototype) {
|
| 3504 | return (Builder) new Builder().MergeFrom(prototype);
|
| 3505 | }
|
| 3506 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 3507 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 3508 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 3509 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3510 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestAllTypesLite, Builder> {
|
| 3511 | protected override Builder ThisBuilder {
|
| 3512 | get { return this; }
|
| 3513 | }
|
| 3514 | public Builder() {}
|
| 3515 |
|
| 3516 | TestAllTypesLite result = new TestAllTypesLite();
|
| 3517 |
|
| 3518 | protected override TestAllTypesLite MessageBeingBuilt {
|
| 3519 | get { return result; }
|
| 3520 | }
|
| 3521 |
|
| 3522 | public override Builder Clear() {
|
| 3523 | result = new TestAllTypesLite();
|
| 3524 | return this;
|
| 3525 | }
|
| 3526 |
|
| 3527 | public override Builder Clone() {
|
| 3528 | return new Builder().MergeFrom(result);
|
| 3529 | }
|
| 3530 |
|
| 3531 | public override TestAllTypesLite DefaultInstanceForType {
|
| 3532 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance; }
|
| 3533 | }
|
| 3534 |
|
| 3535 | public override TestAllTypesLite BuildPartial() {
|
| 3536 | if (result == null) {
|
| 3537 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 3538 | }
|
| 3539 | result.repeatedInt32_.MakeReadOnly();
|
| 3540 | result.repeatedInt64_.MakeReadOnly();
|
| 3541 | result.repeatedUint32_.MakeReadOnly();
|
| 3542 | result.repeatedUint64_.MakeReadOnly();
|
| 3543 | result.repeatedSint32_.MakeReadOnly();
|
| 3544 | result.repeatedSint64_.MakeReadOnly();
|
| 3545 | result.repeatedFixed32_.MakeReadOnly();
|
| 3546 | result.repeatedFixed64_.MakeReadOnly();
|
| 3547 | result.repeatedSfixed32_.MakeReadOnly();
|
| 3548 | result.repeatedSfixed64_.MakeReadOnly();
|
| 3549 | result.repeatedFloat_.MakeReadOnly();
|
| 3550 | result.repeatedDouble_.MakeReadOnly();
|
| 3551 | result.repeatedBool_.MakeReadOnly();
|
| 3552 | result.repeatedString_.MakeReadOnly();
|
| 3553 | result.repeatedBytes_.MakeReadOnly();
|
| 3554 | result.repeatedGroup_.MakeReadOnly();
|
| 3555 | result.repeatedNestedMessage_.MakeReadOnly();
|
| 3556 | result.repeatedForeignMessage_.MakeReadOnly();
|
| 3557 | result.repeatedImportMessage_.MakeReadOnly();
|
| 3558 | result.repeatedNestedEnum_.MakeReadOnly();
|
| 3559 | result.repeatedForeignEnum_.MakeReadOnly();
|
| 3560 | result.repeatedImportEnum_.MakeReadOnly();
|
| 3561 | result.repeatedStringPiece_.MakeReadOnly();
|
| 3562 | result.repeatedCord_.MakeReadOnly();
|
| 3563 | TestAllTypesLite returnMe = result;
|
| 3564 | result = null;
|
| 3565 | return returnMe;
|
| 3566 | }
|
| 3567 |
|
| 3568 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 3569 | if (other is TestAllTypesLite) {
|
| 3570 | return MergeFrom((TestAllTypesLite) other);
|
| 3571 | } else {
|
| 3572 | base.MergeFrom(other);
|
| 3573 | return this;
|
| 3574 | }
|
| 3575 | }
|
| 3576 |
|
| 3577 | public override Builder MergeFrom(TestAllTypesLite other) {
|
| 3578 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance) return this;
|
| 3579 | if (other.HasOptionalInt32) {
|
| 3580 | OptionalInt32 = other.OptionalInt32;
|
| 3581 | }
|
| 3582 | if (other.HasOptionalInt64) {
|
| 3583 | OptionalInt64 = other.OptionalInt64;
|
| 3584 | }
|
| 3585 | if (other.HasOptionalUint32) {
|
| 3586 | OptionalUint32 = other.OptionalUint32;
|
| 3587 | }
|
| 3588 | if (other.HasOptionalUint64) {
|
| 3589 | OptionalUint64 = other.OptionalUint64;
|
| 3590 | }
|
| 3591 | if (other.HasOptionalSint32) {
|
| 3592 | OptionalSint32 = other.OptionalSint32;
|
| 3593 | }
|
| 3594 | if (other.HasOptionalSint64) {
|
| 3595 | OptionalSint64 = other.OptionalSint64;
|
| 3596 | }
|
| 3597 | if (other.HasOptionalFixed32) {
|
| 3598 | OptionalFixed32 = other.OptionalFixed32;
|
| 3599 | }
|
| 3600 | if (other.HasOptionalFixed64) {
|
| 3601 | OptionalFixed64 = other.OptionalFixed64;
|
| 3602 | }
|
| 3603 | if (other.HasOptionalSfixed32) {
|
| 3604 | OptionalSfixed32 = other.OptionalSfixed32;
|
| 3605 | }
|
| 3606 | if (other.HasOptionalSfixed64) {
|
| 3607 | OptionalSfixed64 = other.OptionalSfixed64;
|
| 3608 | }
|
| 3609 | if (other.HasOptionalFloat) {
|
| 3610 | OptionalFloat = other.OptionalFloat;
|
| 3611 | }
|
| 3612 | if (other.HasOptionalDouble) {
|
| 3613 | OptionalDouble = other.OptionalDouble;
|
| 3614 | }
|
| 3615 | if (other.HasOptionalBool) {
|
| 3616 | OptionalBool = other.OptionalBool;
|
| 3617 | }
|
| 3618 | if (other.HasOptionalString) {
|
| 3619 | OptionalString = other.OptionalString;
|
| 3620 | }
|
| 3621 | if (other.HasOptionalBytes) {
|
| 3622 | OptionalBytes = other.OptionalBytes;
|
| 3623 | }
|
| 3624 | if (other.HasOptionalGroup) {
|
| 3625 | MergeOptionalGroup(other.OptionalGroup);
|
| 3626 | }
|
| 3627 | if (other.HasOptionalNestedMessage) {
|
| 3628 | MergeOptionalNestedMessage(other.OptionalNestedMessage);
|
| 3629 | }
|
| 3630 | if (other.HasOptionalForeignMessage) {
|
| 3631 | MergeOptionalForeignMessage(other.OptionalForeignMessage);
|
| 3632 | }
|
| 3633 | if (other.HasOptionalImportMessage) {
|
| 3634 | MergeOptionalImportMessage(other.OptionalImportMessage);
|
| 3635 | }
|
| 3636 | if (other.HasOptionalNestedEnum) {
|
| 3637 | OptionalNestedEnum = other.OptionalNestedEnum;
|
| 3638 | }
|
| 3639 | if (other.HasOptionalForeignEnum) {
|
| 3640 | OptionalForeignEnum = other.OptionalForeignEnum;
|
| 3641 | }
|
| 3642 | if (other.HasOptionalImportEnum) {
|
| 3643 | OptionalImportEnum = other.OptionalImportEnum;
|
| 3644 | }
|
| 3645 | if (other.HasOptionalStringPiece) {
|
| 3646 | OptionalStringPiece = other.OptionalStringPiece;
|
| 3647 | }
|
| 3648 | if (other.HasOptionalCord) {
|
| 3649 | OptionalCord = other.OptionalCord;
|
| 3650 | }
|
| 3651 | if (other.repeatedInt32_.Count != 0) {
|
| 3652 | base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
|
| 3653 | }
|
| 3654 | if (other.repeatedInt64_.Count != 0) {
|
| 3655 | base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
|
| 3656 | }
|
| 3657 | if (other.repeatedUint32_.Count != 0) {
|
| 3658 | base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
|
| 3659 | }
|
| 3660 | if (other.repeatedUint64_.Count != 0) {
|
| 3661 | base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
|
| 3662 | }
|
| 3663 | if (other.repeatedSint32_.Count != 0) {
|
| 3664 | base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
|
| 3665 | }
|
| 3666 | if (other.repeatedSint64_.Count != 0) {
|
| 3667 | base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
|
| 3668 | }
|
| 3669 | if (other.repeatedFixed32_.Count != 0) {
|
| 3670 | base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
|
| 3671 | }
|
| 3672 | if (other.repeatedFixed64_.Count != 0) {
|
| 3673 | base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
|
| 3674 | }
|
| 3675 | if (other.repeatedSfixed32_.Count != 0) {
|
| 3676 | base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
|
| 3677 | }
|
| 3678 | if (other.repeatedSfixed64_.Count != 0) {
|
| 3679 | base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
|
| 3680 | }
|
| 3681 | if (other.repeatedFloat_.Count != 0) {
|
| 3682 | base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
|
| 3683 | }
|
| 3684 | if (other.repeatedDouble_.Count != 0) {
|
| 3685 | base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
|
| 3686 | }
|
| 3687 | if (other.repeatedBool_.Count != 0) {
|
| 3688 | base.AddRange(other.repeatedBool_, result.repeatedBool_);
|
| 3689 | }
|
| 3690 | if (other.repeatedString_.Count != 0) {
|
| 3691 | base.AddRange(other.repeatedString_, result.repeatedString_);
|
| 3692 | }
|
| 3693 | if (other.repeatedBytes_.Count != 0) {
|
| 3694 | base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
|
| 3695 | }
|
| 3696 | if (other.repeatedGroup_.Count != 0) {
|
| 3697 | base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
|
| 3698 | }
|
| 3699 | if (other.repeatedNestedMessage_.Count != 0) {
|
| 3700 | base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
|
| 3701 | }
|
| 3702 | if (other.repeatedForeignMessage_.Count != 0) {
|
| 3703 | base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
|
| 3704 | }
|
| 3705 | if (other.repeatedImportMessage_.Count != 0) {
|
| 3706 | base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
|
| 3707 | }
|
| 3708 | if (other.repeatedNestedEnum_.Count != 0) {
|
| 3709 | base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
|
| 3710 | }
|
| 3711 | if (other.repeatedForeignEnum_.Count != 0) {
|
| 3712 | base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
|
| 3713 | }
|
| 3714 | if (other.repeatedImportEnum_.Count != 0) {
|
| 3715 | base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
|
| 3716 | }
|
| 3717 | if (other.repeatedStringPiece_.Count != 0) {
|
| 3718 | base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
|
| 3719 | }
|
| 3720 | if (other.repeatedCord_.Count != 0) {
|
| 3721 | base.AddRange(other.repeatedCord_, result.repeatedCord_);
|
| 3722 | }
|
| 3723 | if (other.HasDefaultInt32) {
|
| 3724 | DefaultInt32 = other.DefaultInt32;
|
| 3725 | }
|
| 3726 | if (other.HasDefaultInt64) {
|
| 3727 | DefaultInt64 = other.DefaultInt64;
|
| 3728 | }
|
| 3729 | if (other.HasDefaultUint32) {
|
| 3730 | DefaultUint32 = other.DefaultUint32;
|
| 3731 | }
|
| 3732 | if (other.HasDefaultUint64) {
|
| 3733 | DefaultUint64 = other.DefaultUint64;
|
| 3734 | }
|
| 3735 | if (other.HasDefaultSint32) {
|
| 3736 | DefaultSint32 = other.DefaultSint32;
|
| 3737 | }
|
| 3738 | if (other.HasDefaultSint64) {
|
| 3739 | DefaultSint64 = other.DefaultSint64;
|
| 3740 | }
|
| 3741 | if (other.HasDefaultFixed32) {
|
| 3742 | DefaultFixed32 = other.DefaultFixed32;
|
| 3743 | }
|
| 3744 | if (other.HasDefaultFixed64) {
|
| 3745 | DefaultFixed64 = other.DefaultFixed64;
|
| 3746 | }
|
| 3747 | if (other.HasDefaultSfixed32) {
|
| 3748 | DefaultSfixed32 = other.DefaultSfixed32;
|
| 3749 | }
|
| 3750 | if (other.HasDefaultSfixed64) {
|
| 3751 | DefaultSfixed64 = other.DefaultSfixed64;
|
| 3752 | }
|
| 3753 | if (other.HasDefaultFloat) {
|
| 3754 | DefaultFloat = other.DefaultFloat;
|
| 3755 | }
|
| 3756 | if (other.HasDefaultDouble) {
|
| 3757 | DefaultDouble = other.DefaultDouble;
|
| 3758 | }
|
| 3759 | if (other.HasDefaultBool) {
|
| 3760 | DefaultBool = other.DefaultBool;
|
| 3761 | }
|
| 3762 | if (other.HasDefaultString) {
|
| 3763 | DefaultString = other.DefaultString;
|
| 3764 | }
|
| 3765 | if (other.HasDefaultBytes) {
|
| 3766 | DefaultBytes = other.DefaultBytes;
|
| 3767 | }
|
| 3768 | if (other.HasDefaultNestedEnum) {
|
| 3769 | DefaultNestedEnum = other.DefaultNestedEnum;
|
| 3770 | }
|
| 3771 | if (other.HasDefaultForeignEnum) {
|
| 3772 | DefaultForeignEnum = other.DefaultForeignEnum;
|
| 3773 | }
|
| 3774 | if (other.HasDefaultImportEnum) {
|
| 3775 | DefaultImportEnum = other.DefaultImportEnum;
|
| 3776 | }
|
| 3777 | if (other.HasDefaultStringPiece) {
|
| 3778 | DefaultStringPiece = other.DefaultStringPiece;
|
| 3779 | }
|
| 3780 | if (other.HasDefaultCord) {
|
| 3781 | DefaultCord = other.DefaultCord;
|
| 3782 | }
|
| 3783 | return this;
|
| 3784 | }
|
| 3785 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3786 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3787 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 3788 | }
|
| 3789 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3790 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 3791 | uint tag;
|
| 3792 | string field_name;
|
| 3793 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3794 | switch (tag) {
|
| 3795 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 3796 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3797 | }
|
| 3798 | default: {
|
| 3799 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 3800 | return this;
|
| 3801 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3802 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3803 | break;
|
| 3804 | }
|
| 3805 | case 8: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3806 | result.hasOptionalInt32 |= input.ReadInt32(ref result.optionalInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3807 | break;
|
| 3808 | }
|
| 3809 | case 16: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3810 | result.hasOptionalInt64 |= input.ReadInt64(ref result.optionalInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3811 | break;
|
| 3812 | }
|
| 3813 | case 24: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3814 | result.hasOptionalUint32 |= input.ReadUInt32(ref result.optionalUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3815 | break;
|
| 3816 | }
|
| 3817 | case 32: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3818 | result.hasOptionalUint64 |= input.ReadUInt64(ref result.optionalUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3819 | break;
|
| 3820 | }
|
| 3821 | case 40: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3822 | result.hasOptionalSint32 |= input.ReadSInt32(ref result.optionalSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3823 | break;
|
| 3824 | }
|
| 3825 | case 48: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3826 | result.hasOptionalSint64 |= input.ReadSInt64(ref result.optionalSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3827 | break;
|
| 3828 | }
|
| 3829 | case 61: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3830 | result.hasOptionalFixed32 |= input.ReadFixed32(ref result.optionalFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3831 | break;
|
| 3832 | }
|
| 3833 | case 65: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3834 | result.hasOptionalFixed64 |= input.ReadFixed64(ref result.optionalFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3835 | break;
|
| 3836 | }
|
| 3837 | case 77: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3838 | result.hasOptionalSfixed32 |= input.ReadSFixed32(ref result.optionalSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3839 | break;
|
| 3840 | }
|
| 3841 | case 81: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3842 | result.hasOptionalSfixed64 |= input.ReadSFixed64(ref result.optionalSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3843 | break;
|
| 3844 | }
|
| 3845 | case 93: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3846 | result.hasOptionalFloat |= input.ReadFloat(ref result.optionalFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3847 | break;
|
| 3848 | }
|
| 3849 | case 97: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3850 | result.hasOptionalDouble |= input.ReadDouble(ref result.optionalDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3851 | break;
|
| 3852 | }
|
| 3853 | case 104: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3854 | result.hasOptionalBool |= input.ReadBool(ref result.optionalBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3855 | break;
|
| 3856 | }
|
| 3857 | case 114: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3858 | result.hasOptionalString |= input.ReadString(ref result.optionalString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3859 | break;
|
| 3860 | }
|
| 3861 | case 122: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3862 | result.hasOptionalBytes |= input.ReadBytes(ref result.optionalBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3863 | break;
|
| 3864 | }
|
| 3865 | case 131: {
|
| 3866 | 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] | 3867 | if (result.hasOptionalGroup) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3868 | subBuilder.MergeFrom(OptionalGroup);
|
| 3869 | }
|
| 3870 | input.ReadGroup(16, subBuilder, extensionRegistry);
|
| 3871 | OptionalGroup = subBuilder.BuildPartial();
|
| 3872 | break;
|
| 3873 | }
|
| 3874 | case 146: {
|
| 3875 | 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] | 3876 | if (result.hasOptionalNestedMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3877 | subBuilder.MergeFrom(OptionalNestedMessage);
|
| 3878 | }
|
| 3879 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3880 | OptionalNestedMessage = subBuilder.BuildPartial();
|
| 3881 | break;
|
| 3882 | }
|
| 3883 | case 154: {
|
| 3884 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder();
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3885 | if (result.hasOptionalForeignMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3886 | subBuilder.MergeFrom(OptionalForeignMessage);
|
| 3887 | }
|
| 3888 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3889 | OptionalForeignMessage = subBuilder.BuildPartial();
|
| 3890 | break;
|
| 3891 | }
|
| 3892 | case 162: {
|
| 3893 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder();
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3894 | if (result.hasOptionalImportMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3895 | subBuilder.MergeFrom(OptionalImportMessage);
|
| 3896 | }
|
| 3897 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3898 | OptionalImportMessage = subBuilder.BuildPartial();
|
| 3899 | break;
|
| 3900 | }
|
| 3901 | case 168: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3902 | object unknown;
|
| 3903 | if(input.ReadEnum(ref result.optionalNestedEnum_, out unknown)) {
|
| 3904 | result.hasOptionalNestedEnum = true;
|
| 3905 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3906 | }
|
| 3907 | break;
|
| 3908 | }
|
| 3909 | case 176: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3910 | object unknown;
|
| 3911 | if(input.ReadEnum(ref result.optionalForeignEnum_, out unknown)) {
|
| 3912 | result.hasOptionalForeignEnum = true;
|
| 3913 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3914 | }
|
| 3915 | break;
|
| 3916 | }
|
| 3917 | case 184: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3918 | object unknown;
|
| 3919 | if(input.ReadEnum(ref result.optionalImportEnum_, out unknown)) {
|
| 3920 | result.hasOptionalImportEnum = true;
|
| 3921 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3922 | }
|
| 3923 | break;
|
| 3924 | }
|
| 3925 | case 194: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3926 | result.hasOptionalStringPiece |= input.ReadString(ref result.optionalStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3927 | break;
|
| 3928 | }
|
| 3929 | case 202: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3930 | result.hasOptionalCord |= input.ReadString(ref result.optionalCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3931 | break;
|
| 3932 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3933 | case 250:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3934 | case 248: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3935 | input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.repeatedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3936 | break;
|
| 3937 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3938 | case 258:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3939 | case 256: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3940 | input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.repeatedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3941 | break;
|
| 3942 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3943 | case 266:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3944 | case 264: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3945 | input.ReadPrimitiveArray(pbd::FieldType.UInt32, tag, field_name, result.repeatedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3946 | break;
|
| 3947 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3948 | case 274:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3949 | case 272: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3950 | input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.repeatedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3951 | break;
|
| 3952 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3953 | case 282:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3954 | case 280: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3955 | input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.repeatedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3956 | break;
|
| 3957 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3958 | case 290:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3959 | case 288: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3960 | input.ReadPrimitiveArray(pbd::FieldType.SInt64, tag, field_name, result.repeatedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3961 | break;
|
| 3962 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3963 | case 298:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3964 | case 301: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3965 | input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.repeatedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3966 | break;
|
| 3967 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3968 | case 306:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3969 | case 305: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3970 | input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.repeatedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3971 | break;
|
| 3972 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3973 | case 314:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3974 | case 317: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3975 | input.ReadPrimitiveArray(pbd::FieldType.SFixed32, tag, field_name, result.repeatedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3976 | break;
|
| 3977 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3978 | case 322:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3979 | case 321: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3980 | input.ReadPrimitiveArray(pbd::FieldType.SFixed64, tag, field_name, result.repeatedSfixed64_);
|
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 330:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3984 | case 333: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3985 | input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.repeatedFloat_);
|
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 338:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3989 | case 337: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3990 | input.ReadPrimitiveArray(pbd::FieldType.Double, tag, field_name, result.repeatedDouble_);
|
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 346:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3994 | case 344: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3995 | input.ReadPrimitiveArray(pbd::FieldType.Bool, tag, field_name, result.repeatedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3996 | break;
|
| 3997 | }
|
| 3998 | case 354: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3999 | input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4000 | break;
|
| 4001 | }
|
| 4002 | case 362: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4003 | input.ReadPrimitiveArray(pbd::FieldType.Bytes, tag, field_name, result.repeatedBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4004 | break;
|
| 4005 | }
|
| 4006 | case 371: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4007 | 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] | 4008 | break;
|
| 4009 | }
|
| 4010 | case 386: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4011 | 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] | 4012 | break;
|
| 4013 | }
|
| 4014 | case 394: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4015 | 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] | 4016 | break;
|
| 4017 | }
|
| 4018 | case 402: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4019 | 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] | 4020 | break;
|
| 4021 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4022 | case 410:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4023 | case 408: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4024 | scg::ICollection<object> unknownItems;
|
| 4025 | 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] | 4026 | break;
|
| 4027 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4028 | case 418:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4029 | case 416: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4030 | scg::ICollection<object> unknownItems;
|
| 4031 | 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] | 4032 | break;
|
| 4033 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4034 | case 426:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4035 | case 424: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4036 | scg::ICollection<object> unknownItems;
|
| 4037 | 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] | 4038 | break;
|
| 4039 | }
|
| 4040 | case 434: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4041 | input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4042 | break;
|
| 4043 | }
|
| 4044 | case 442: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4045 | input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4046 | break;
|
| 4047 | }
|
| 4048 | case 488: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4049 | result.hasDefaultInt32 |= input.ReadInt32(ref result.defaultInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4050 | break;
|
| 4051 | }
|
| 4052 | case 496: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4053 | result.hasDefaultInt64 |= input.ReadInt64(ref result.defaultInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4054 | break;
|
| 4055 | }
|
| 4056 | case 504: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4057 | result.hasDefaultUint32 |= input.ReadUInt32(ref result.defaultUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4058 | break;
|
| 4059 | }
|
| 4060 | case 512: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4061 | result.hasDefaultUint64 |= input.ReadUInt64(ref result.defaultUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4062 | break;
|
| 4063 | }
|
| 4064 | case 520: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4065 | result.hasDefaultSint32 |= input.ReadSInt32(ref result.defaultSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4066 | break;
|
| 4067 | }
|
| 4068 | case 528: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4069 | result.hasDefaultSint64 |= input.ReadSInt64(ref result.defaultSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4070 | break;
|
| 4071 | }
|
| 4072 | case 541: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4073 | result.hasDefaultFixed32 |= input.ReadFixed32(ref result.defaultFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4074 | break;
|
| 4075 | }
|
| 4076 | case 545: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4077 | result.hasDefaultFixed64 |= input.ReadFixed64(ref result.defaultFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4078 | break;
|
| 4079 | }
|
| 4080 | case 557: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4081 | result.hasDefaultSfixed32 |= input.ReadSFixed32(ref result.defaultSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4082 | break;
|
| 4083 | }
|
| 4084 | case 561: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4085 | result.hasDefaultSfixed64 |= input.ReadSFixed64(ref result.defaultSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4086 | break;
|
| 4087 | }
|
| 4088 | case 573: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4089 | result.hasDefaultFloat |= input.ReadFloat(ref result.defaultFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4090 | break;
|
| 4091 | }
|
| 4092 | case 577: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4093 | result.hasDefaultDouble |= input.ReadDouble(ref result.defaultDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4094 | break;
|
| 4095 | }
|
| 4096 | case 584: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4097 | result.hasDefaultBool |= input.ReadBool(ref result.defaultBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4098 | break;
|
| 4099 | }
|
| 4100 | case 594: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4101 | result.hasDefaultString |= input.ReadString(ref result.defaultString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4102 | break;
|
| 4103 | }
|
| 4104 | case 602: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4105 | result.hasDefaultBytes |= input.ReadBytes(ref result.defaultBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4106 | break;
|
| 4107 | }
|
| 4108 | case 648: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4109 | object unknown;
|
| 4110 | if(input.ReadEnum(ref result.defaultNestedEnum_, out unknown)) {
|
| 4111 | result.hasDefaultNestedEnum = true;
|
| 4112 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4113 | }
|
| 4114 | break;
|
| 4115 | }
|
| 4116 | case 656: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4117 | object unknown;
|
| 4118 | if(input.ReadEnum(ref result.defaultForeignEnum_, out unknown)) {
|
| 4119 | result.hasDefaultForeignEnum = true;
|
| 4120 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4121 | }
|
| 4122 | break;
|
| 4123 | }
|
| 4124 | case 664: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4125 | object unknown;
|
| 4126 | if(input.ReadEnum(ref result.defaultImportEnum_, out unknown)) {
|
| 4127 | result.hasDefaultImportEnum = true;
|
| 4128 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4129 | }
|
| 4130 | break;
|
| 4131 | }
|
| 4132 | case 674: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4133 | result.hasDefaultStringPiece |= input.ReadString(ref result.defaultStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4134 | break;
|
| 4135 | }
|
| 4136 | case 682: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4137 | result.hasDefaultCord |= input.ReadString(ref result.defaultCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4138 | break;
|
| 4139 | }
|
| 4140 | }
|
| 4141 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 4142 |
|
| 4143 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4144 | }
|
| 4145 |
|
| 4146 |
|
| 4147 | public bool HasOptionalInt32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4148 | get { return result.hasOptionalInt32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4149 | }
|
| 4150 | public int OptionalInt32 {
|
| 4151 | get { return result.OptionalInt32; }
|
| 4152 | set { SetOptionalInt32(value); }
|
| 4153 | }
|
| 4154 | public Builder SetOptionalInt32(int value) {
|
| 4155 | result.hasOptionalInt32 = true;
|
| 4156 | result.optionalInt32_ = value;
|
| 4157 | return this;
|
| 4158 | }
|
| 4159 | public Builder ClearOptionalInt32() {
|
| 4160 | result.hasOptionalInt32 = false;
|
| 4161 | result.optionalInt32_ = 0;
|
| 4162 | return this;
|
| 4163 | }
|
| 4164 |
|
| 4165 | public bool HasOptionalInt64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4166 | get { return result.hasOptionalInt64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4167 | }
|
| 4168 | public long OptionalInt64 {
|
| 4169 | get { return result.OptionalInt64; }
|
| 4170 | set { SetOptionalInt64(value); }
|
| 4171 | }
|
| 4172 | public Builder SetOptionalInt64(long value) {
|
| 4173 | result.hasOptionalInt64 = true;
|
| 4174 | result.optionalInt64_ = value;
|
| 4175 | return this;
|
| 4176 | }
|
| 4177 | public Builder ClearOptionalInt64() {
|
| 4178 | result.hasOptionalInt64 = false;
|
| 4179 | result.optionalInt64_ = 0L;
|
| 4180 | return this;
|
| 4181 | }
|
| 4182 |
|
| 4183 | public bool HasOptionalUint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4184 | get { return result.hasOptionalUint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4185 | }
|
| 4186 | [global::System.CLSCompliant(false)]
|
| 4187 | public uint OptionalUint32 {
|
| 4188 | get { return result.OptionalUint32; }
|
| 4189 | set { SetOptionalUint32(value); }
|
| 4190 | }
|
| 4191 | [global::System.CLSCompliant(false)]
|
| 4192 | public Builder SetOptionalUint32(uint value) {
|
| 4193 | result.hasOptionalUint32 = true;
|
| 4194 | result.optionalUint32_ = value;
|
| 4195 | return this;
|
| 4196 | }
|
| 4197 | public Builder ClearOptionalUint32() {
|
| 4198 | result.hasOptionalUint32 = false;
|
| 4199 | result.optionalUint32_ = 0;
|
| 4200 | return this;
|
| 4201 | }
|
| 4202 |
|
| 4203 | public bool HasOptionalUint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4204 | get { return result.hasOptionalUint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4205 | }
|
| 4206 | [global::System.CLSCompliant(false)]
|
| 4207 | public ulong OptionalUint64 {
|
| 4208 | get { return result.OptionalUint64; }
|
| 4209 | set { SetOptionalUint64(value); }
|
| 4210 | }
|
| 4211 | [global::System.CLSCompliant(false)]
|
| 4212 | public Builder SetOptionalUint64(ulong value) {
|
| 4213 | result.hasOptionalUint64 = true;
|
| 4214 | result.optionalUint64_ = value;
|
| 4215 | return this;
|
| 4216 | }
|
| 4217 | public Builder ClearOptionalUint64() {
|
| 4218 | result.hasOptionalUint64 = false;
|
| 4219 | result.optionalUint64_ = 0UL;
|
| 4220 | return this;
|
| 4221 | }
|
| 4222 |
|
| 4223 | public bool HasOptionalSint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4224 | get { return result.hasOptionalSint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4225 | }
|
| 4226 | public int OptionalSint32 {
|
| 4227 | get { return result.OptionalSint32; }
|
| 4228 | set { SetOptionalSint32(value); }
|
| 4229 | }
|
| 4230 | public Builder SetOptionalSint32(int value) {
|
| 4231 | result.hasOptionalSint32 = true;
|
| 4232 | result.optionalSint32_ = value;
|
| 4233 | return this;
|
| 4234 | }
|
| 4235 | public Builder ClearOptionalSint32() {
|
| 4236 | result.hasOptionalSint32 = false;
|
| 4237 | result.optionalSint32_ = 0;
|
| 4238 | return this;
|
| 4239 | }
|
| 4240 |
|
| 4241 | public bool HasOptionalSint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4242 | get { return result.hasOptionalSint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4243 | }
|
| 4244 | public long OptionalSint64 {
|
| 4245 | get { return result.OptionalSint64; }
|
| 4246 | set { SetOptionalSint64(value); }
|
| 4247 | }
|
| 4248 | public Builder SetOptionalSint64(long value) {
|
| 4249 | result.hasOptionalSint64 = true;
|
| 4250 | result.optionalSint64_ = value;
|
| 4251 | return this;
|
| 4252 | }
|
| 4253 | public Builder ClearOptionalSint64() {
|
| 4254 | result.hasOptionalSint64 = false;
|
| 4255 | result.optionalSint64_ = 0;
|
| 4256 | return this;
|
| 4257 | }
|
| 4258 |
|
| 4259 | public bool HasOptionalFixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4260 | get { return result.hasOptionalFixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4261 | }
|
| 4262 | [global::System.CLSCompliant(false)]
|
| 4263 | public uint OptionalFixed32 {
|
| 4264 | get { return result.OptionalFixed32; }
|
| 4265 | set { SetOptionalFixed32(value); }
|
| 4266 | }
|
| 4267 | [global::System.CLSCompliant(false)]
|
| 4268 | public Builder SetOptionalFixed32(uint value) {
|
| 4269 | result.hasOptionalFixed32 = true;
|
| 4270 | result.optionalFixed32_ = value;
|
| 4271 | return this;
|
| 4272 | }
|
| 4273 | public Builder ClearOptionalFixed32() {
|
| 4274 | result.hasOptionalFixed32 = false;
|
| 4275 | result.optionalFixed32_ = 0;
|
| 4276 | return this;
|
| 4277 | }
|
| 4278 |
|
| 4279 | public bool HasOptionalFixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4280 | get { return result.hasOptionalFixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4281 | }
|
| 4282 | [global::System.CLSCompliant(false)]
|
| 4283 | public ulong OptionalFixed64 {
|
| 4284 | get { return result.OptionalFixed64; }
|
| 4285 | set { SetOptionalFixed64(value); }
|
| 4286 | }
|
| 4287 | [global::System.CLSCompliant(false)]
|
| 4288 | public Builder SetOptionalFixed64(ulong value) {
|
| 4289 | result.hasOptionalFixed64 = true;
|
| 4290 | result.optionalFixed64_ = value;
|
| 4291 | return this;
|
| 4292 | }
|
| 4293 | public Builder ClearOptionalFixed64() {
|
| 4294 | result.hasOptionalFixed64 = false;
|
| 4295 | result.optionalFixed64_ = 0;
|
| 4296 | return this;
|
| 4297 | }
|
| 4298 |
|
| 4299 | public bool HasOptionalSfixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4300 | get { return result.hasOptionalSfixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4301 | }
|
| 4302 | public int OptionalSfixed32 {
|
| 4303 | get { return result.OptionalSfixed32; }
|
| 4304 | set { SetOptionalSfixed32(value); }
|
| 4305 | }
|
| 4306 | public Builder SetOptionalSfixed32(int value) {
|
| 4307 | result.hasOptionalSfixed32 = true;
|
| 4308 | result.optionalSfixed32_ = value;
|
| 4309 | return this;
|
| 4310 | }
|
| 4311 | public Builder ClearOptionalSfixed32() {
|
| 4312 | result.hasOptionalSfixed32 = false;
|
| 4313 | result.optionalSfixed32_ = 0;
|
| 4314 | return this;
|
| 4315 | }
|
| 4316 |
|
| 4317 | public bool HasOptionalSfixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4318 | get { return result.hasOptionalSfixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4319 | }
|
| 4320 | public long OptionalSfixed64 {
|
| 4321 | get { return result.OptionalSfixed64; }
|
| 4322 | set { SetOptionalSfixed64(value); }
|
| 4323 | }
|
| 4324 | public Builder SetOptionalSfixed64(long value) {
|
| 4325 | result.hasOptionalSfixed64 = true;
|
| 4326 | result.optionalSfixed64_ = value;
|
| 4327 | return this;
|
| 4328 | }
|
| 4329 | public Builder ClearOptionalSfixed64() {
|
| 4330 | result.hasOptionalSfixed64 = false;
|
| 4331 | result.optionalSfixed64_ = 0;
|
| 4332 | return this;
|
| 4333 | }
|
| 4334 |
|
| 4335 | public bool HasOptionalFloat {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4336 | get { return result.hasOptionalFloat; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4337 | }
|
| 4338 | public float OptionalFloat {
|
| 4339 | get { return result.OptionalFloat; }
|
| 4340 | set { SetOptionalFloat(value); }
|
| 4341 | }
|
| 4342 | public Builder SetOptionalFloat(float value) {
|
| 4343 | result.hasOptionalFloat = true;
|
| 4344 | result.optionalFloat_ = value;
|
| 4345 | return this;
|
| 4346 | }
|
| 4347 | public Builder ClearOptionalFloat() {
|
| 4348 | result.hasOptionalFloat = false;
|
| 4349 | result.optionalFloat_ = 0F;
|
| 4350 | return this;
|
| 4351 | }
|
| 4352 |
|
| 4353 | public bool HasOptionalDouble {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4354 | get { return result.hasOptionalDouble; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4355 | }
|
| 4356 | public double OptionalDouble {
|
| 4357 | get { return result.OptionalDouble; }
|
| 4358 | set { SetOptionalDouble(value); }
|
| 4359 | }
|
| 4360 | public Builder SetOptionalDouble(double value) {
|
| 4361 | result.hasOptionalDouble = true;
|
| 4362 | result.optionalDouble_ = value;
|
| 4363 | return this;
|
| 4364 | }
|
| 4365 | public Builder ClearOptionalDouble() {
|
| 4366 | result.hasOptionalDouble = false;
|
| 4367 | result.optionalDouble_ = 0D;
|
| 4368 | return this;
|
| 4369 | }
|
| 4370 |
|
| 4371 | public bool HasOptionalBool {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4372 | get { return result.hasOptionalBool; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4373 | }
|
| 4374 | public bool OptionalBool {
|
| 4375 | get { return result.OptionalBool; }
|
| 4376 | set { SetOptionalBool(value); }
|
| 4377 | }
|
| 4378 | public Builder SetOptionalBool(bool value) {
|
| 4379 | result.hasOptionalBool = true;
|
| 4380 | result.optionalBool_ = value;
|
| 4381 | return this;
|
| 4382 | }
|
| 4383 | public Builder ClearOptionalBool() {
|
| 4384 | result.hasOptionalBool = false;
|
| 4385 | result.optionalBool_ = false;
|
| 4386 | return this;
|
| 4387 | }
|
| 4388 |
|
| 4389 | public bool HasOptionalString {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4390 | get { return result.hasOptionalString; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4391 | }
|
| 4392 | public string OptionalString {
|
| 4393 | get { return result.OptionalString; }
|
| 4394 | set { SetOptionalString(value); }
|
| 4395 | }
|
| 4396 | public Builder SetOptionalString(string value) {
|
| 4397 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4398 | result.hasOptionalString = true;
|
| 4399 | result.optionalString_ = value;
|
| 4400 | return this;
|
| 4401 | }
|
| 4402 | public Builder ClearOptionalString() {
|
| 4403 | result.hasOptionalString = false;
|
| 4404 | result.optionalString_ = "";
|
| 4405 | return this;
|
| 4406 | }
|
| 4407 |
|
| 4408 | public bool HasOptionalBytes {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4409 | get { return result.hasOptionalBytes; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4410 | }
|
| 4411 | public pb::ByteString OptionalBytes {
|
| 4412 | get { return result.OptionalBytes; }
|
| 4413 | set { SetOptionalBytes(value); }
|
| 4414 | }
|
| 4415 | public Builder SetOptionalBytes(pb::ByteString value) {
|
| 4416 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4417 | result.hasOptionalBytes = true;
|
| 4418 | result.optionalBytes_ = value;
|
| 4419 | return this;
|
| 4420 | }
|
| 4421 | public Builder ClearOptionalBytes() {
|
| 4422 | result.hasOptionalBytes = false;
|
| 4423 | result.optionalBytes_ = pb::ByteString.Empty;
|
| 4424 | return this;
|
| 4425 | }
|
| 4426 |
|
| 4427 | public bool HasOptionalGroup {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4428 | get { return result.hasOptionalGroup; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4429 | }
|
| 4430 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
|
| 4431 | get { return result.OptionalGroup; }
|
| 4432 | set { SetOptionalGroup(value); }
|
| 4433 | }
|
| 4434 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) {
|
| 4435 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4436 | result.hasOptionalGroup = true;
|
| 4437 | result.optionalGroup_ = value;
|
| 4438 | return this;
|
| 4439 | }
|
| 4440 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder builderForValue) {
|
| 4441 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4442 | result.hasOptionalGroup = true;
|
| 4443 | result.optionalGroup_ = builderForValue.Build();
|
| 4444 | return this;
|
| 4445 | }
|
| 4446 | public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) {
|
| 4447 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4448 | if (result.hasOptionalGroup &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4449 | result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) {
|
| 4450 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
|
| 4451 | } else {
|
| 4452 | result.optionalGroup_ = value;
|
| 4453 | }
|
| 4454 | result.hasOptionalGroup = true;
|
| 4455 | return this;
|
| 4456 | }
|
| 4457 | public Builder ClearOptionalGroup() {
|
| 4458 | result.hasOptionalGroup = false;
|
| 4459 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance;
|
| 4460 | return this;
|
| 4461 | }
|
| 4462 |
|
| 4463 | public bool HasOptionalNestedMessage {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4464 | get { return result.hasOptionalNestedMessage; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4465 | }
|
| 4466 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
|
| 4467 | get { return result.OptionalNestedMessage; }
|
| 4468 | set { SetOptionalNestedMessage(value); }
|
| 4469 | }
|
| 4470 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 4471 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4472 | result.hasOptionalNestedMessage = true;
|
| 4473 | result.optionalNestedMessage_ = value;
|
| 4474 | return this;
|
| 4475 | }
|
| 4476 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 4477 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4478 | result.hasOptionalNestedMessage = true;
|
| 4479 | result.optionalNestedMessage_ = builderForValue.Build();
|
| 4480 | return this;
|
| 4481 | }
|
| 4482 | public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 4483 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4484 | if (result.hasOptionalNestedMessage &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4485 | result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) {
|
| 4486 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
|
| 4487 | } else {
|
| 4488 | result.optionalNestedMessage_ = value;
|
| 4489 | }
|
| 4490 | result.hasOptionalNestedMessage = true;
|
| 4491 | return this;
|
| 4492 | }
|
| 4493 | public Builder ClearOptionalNestedMessage() {
|
| 4494 | result.hasOptionalNestedMessage = false;
|
| 4495 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance;
|
| 4496 | return this;
|
| 4497 | }
|
| 4498 |
|
| 4499 | public bool HasOptionalForeignMessage {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4500 | get { return result.hasOptionalForeignMessage; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4501 | }
|
| 4502 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage {
|
| 4503 | get { return result.OptionalForeignMessage; }
|
| 4504 | set { SetOptionalForeignMessage(value); }
|
| 4505 | }
|
| 4506 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 4507 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4508 | result.hasOptionalForeignMessage = true;
|
| 4509 | result.optionalForeignMessage_ = value;
|
| 4510 | return this;
|
| 4511 | }
|
| 4512 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 4513 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4514 | result.hasOptionalForeignMessage = true;
|
| 4515 | result.optionalForeignMessage_ = builderForValue.Build();
|
| 4516 | return this;
|
| 4517 | }
|
| 4518 | public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 4519 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4520 | if (result.hasOptionalForeignMessage &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4521 | result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) {
|
| 4522 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
|
| 4523 | } else {
|
| 4524 | result.optionalForeignMessage_ = value;
|
| 4525 | }
|
| 4526 | result.hasOptionalForeignMessage = true;
|
| 4527 | return this;
|
| 4528 | }
|
| 4529 | public Builder ClearOptionalForeignMessage() {
|
| 4530 | result.hasOptionalForeignMessage = false;
|
| 4531 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance;
|
| 4532 | return this;
|
| 4533 | }
|
| 4534 |
|
| 4535 | public bool HasOptionalImportMessage {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4536 | get { return result.hasOptionalImportMessage; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4537 | }
|
| 4538 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage {
|
| 4539 | get { return result.OptionalImportMessage; }
|
| 4540 | set { SetOptionalImportMessage(value); }
|
| 4541 | }
|
| 4542 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 4543 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4544 | result.hasOptionalImportMessage = true;
|
| 4545 | result.optionalImportMessage_ = value;
|
| 4546 | return this;
|
| 4547 | }
|
| 4548 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 4549 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4550 | result.hasOptionalImportMessage = true;
|
| 4551 | result.optionalImportMessage_ = builderForValue.Build();
|
| 4552 | return this;
|
| 4553 | }
|
| 4554 | public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 4555 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4556 | if (result.hasOptionalImportMessage &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4557 | result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance) {
|
| 4558 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
|
| 4559 | } else {
|
| 4560 | result.optionalImportMessage_ = value;
|
| 4561 | }
|
| 4562 | result.hasOptionalImportMessage = true;
|
| 4563 | return this;
|
| 4564 | }
|
| 4565 | public Builder ClearOptionalImportMessage() {
|
| 4566 | result.hasOptionalImportMessage = false;
|
| 4567 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance;
|
| 4568 | return this;
|
| 4569 | }
|
| 4570 |
|
| 4571 | public bool HasOptionalNestedEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4572 | get { return result.hasOptionalNestedEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4573 | }
|
| 4574 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
|
| 4575 | get { return result.OptionalNestedEnum; }
|
| 4576 | set { SetOptionalNestedEnum(value); }
|
| 4577 | }
|
| 4578 | public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 4579 | result.hasOptionalNestedEnum = true;
|
| 4580 | result.optionalNestedEnum_ = value;
|
| 4581 | return this;
|
| 4582 | }
|
| 4583 | public Builder ClearOptionalNestedEnum() {
|
| 4584 | result.hasOptionalNestedEnum = false;
|
| 4585 | result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO;
|
| 4586 | return this;
|
| 4587 | }
|
| 4588 |
|
| 4589 | public bool HasOptionalForeignEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4590 | get { return result.hasOptionalForeignEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4591 | }
|
| 4592 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
|
| 4593 | get { return result.OptionalForeignEnum; }
|
| 4594 | set { SetOptionalForeignEnum(value); }
|
| 4595 | }
|
| 4596 | public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 4597 | result.hasOptionalForeignEnum = true;
|
| 4598 | result.optionalForeignEnum_ = value;
|
| 4599 | return this;
|
| 4600 | }
|
| 4601 | public Builder ClearOptionalForeignEnum() {
|
| 4602 | result.hasOptionalForeignEnum = false;
|
| 4603 | result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
|
| 4604 | return this;
|
| 4605 | }
|
| 4606 |
|
| 4607 | public bool HasOptionalImportEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4608 | get { return result.hasOptionalImportEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4609 | }
|
| 4610 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum {
|
| 4611 | get { return result.OptionalImportEnum; }
|
| 4612 | set { SetOptionalImportEnum(value); }
|
| 4613 | }
|
| 4614 | public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 4615 | result.hasOptionalImportEnum = true;
|
| 4616 | result.optionalImportEnum_ = value;
|
| 4617 | return this;
|
| 4618 | }
|
| 4619 | public Builder ClearOptionalImportEnum() {
|
| 4620 | result.hasOptionalImportEnum = false;
|
| 4621 | result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO;
|
| 4622 | return this;
|
| 4623 | }
|
| 4624 |
|
| 4625 | public bool HasOptionalStringPiece {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4626 | get { return result.hasOptionalStringPiece; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4627 | }
|
| 4628 | public string OptionalStringPiece {
|
| 4629 | get { return result.OptionalStringPiece; }
|
| 4630 | set { SetOptionalStringPiece(value); }
|
| 4631 | }
|
| 4632 | public Builder SetOptionalStringPiece(string value) {
|
| 4633 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4634 | result.hasOptionalStringPiece = true;
|
| 4635 | result.optionalStringPiece_ = value;
|
| 4636 | return this;
|
| 4637 | }
|
| 4638 | public Builder ClearOptionalStringPiece() {
|
| 4639 | result.hasOptionalStringPiece = false;
|
| 4640 | result.optionalStringPiece_ = "";
|
| 4641 | return this;
|
| 4642 | }
|
| 4643 |
|
| 4644 | public bool HasOptionalCord {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4645 | get { return result.hasOptionalCord; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4646 | }
|
| 4647 | public string OptionalCord {
|
| 4648 | get { return result.OptionalCord; }
|
| 4649 | set { SetOptionalCord(value); }
|
| 4650 | }
|
| 4651 | public Builder SetOptionalCord(string value) {
|
| 4652 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4653 | result.hasOptionalCord = true;
|
| 4654 | result.optionalCord_ = value;
|
| 4655 | return this;
|
| 4656 | }
|
| 4657 | public Builder ClearOptionalCord() {
|
| 4658 | result.hasOptionalCord = false;
|
| 4659 | result.optionalCord_ = "";
|
| 4660 | return this;
|
| 4661 | }
|
| 4662 |
|
| 4663 | public pbc::IPopsicleList<int> RepeatedInt32List {
|
| 4664 | get { return result.repeatedInt32_; }
|
| 4665 | }
|
| 4666 | public int RepeatedInt32Count {
|
| 4667 | get { return result.RepeatedInt32Count; }
|
| 4668 | }
|
| 4669 | public int GetRepeatedInt32(int index) {
|
| 4670 | return result.GetRepeatedInt32(index);
|
| 4671 | }
|
| 4672 | public Builder SetRepeatedInt32(int index, int value) {
|
| 4673 | result.repeatedInt32_[index] = value;
|
| 4674 | return this;
|
| 4675 | }
|
| 4676 | public Builder AddRepeatedInt32(int value) {
|
| 4677 | result.repeatedInt32_.Add(value);
|
| 4678 | return this;
|
| 4679 | }
|
| 4680 | public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
|
| 4681 | base.AddRange(values, result.repeatedInt32_);
|
| 4682 | return this;
|
| 4683 | }
|
| 4684 | public Builder ClearRepeatedInt32() {
|
| 4685 | result.repeatedInt32_.Clear();
|
| 4686 | return this;
|
| 4687 | }
|
| 4688 |
|
| 4689 | public pbc::IPopsicleList<long> RepeatedInt64List {
|
| 4690 | get { return result.repeatedInt64_; }
|
| 4691 | }
|
| 4692 | public int RepeatedInt64Count {
|
| 4693 | get { return result.RepeatedInt64Count; }
|
| 4694 | }
|
| 4695 | public long GetRepeatedInt64(int index) {
|
| 4696 | return result.GetRepeatedInt64(index);
|
| 4697 | }
|
| 4698 | public Builder SetRepeatedInt64(int index, long value) {
|
| 4699 | result.repeatedInt64_[index] = value;
|
| 4700 | return this;
|
| 4701 | }
|
| 4702 | public Builder AddRepeatedInt64(long value) {
|
| 4703 | result.repeatedInt64_.Add(value);
|
| 4704 | return this;
|
| 4705 | }
|
| 4706 | public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
|
| 4707 | base.AddRange(values, result.repeatedInt64_);
|
| 4708 | return this;
|
| 4709 | }
|
| 4710 | public Builder ClearRepeatedInt64() {
|
| 4711 | result.repeatedInt64_.Clear();
|
| 4712 | return this;
|
| 4713 | }
|
| 4714 |
|
| 4715 | [global::System.CLSCompliant(false)]
|
| 4716 | public pbc::IPopsicleList<uint> RepeatedUint32List {
|
| 4717 | get { return result.repeatedUint32_; }
|
| 4718 | }
|
| 4719 | public int RepeatedUint32Count {
|
| 4720 | get { return result.RepeatedUint32Count; }
|
| 4721 | }
|
| 4722 | [global::System.CLSCompliant(false)]
|
| 4723 | public uint GetRepeatedUint32(int index) {
|
| 4724 | return result.GetRepeatedUint32(index);
|
| 4725 | }
|
| 4726 | [global::System.CLSCompliant(false)]
|
| 4727 | public Builder SetRepeatedUint32(int index, uint value) {
|
| 4728 | result.repeatedUint32_[index] = value;
|
| 4729 | return this;
|
| 4730 | }
|
| 4731 | [global::System.CLSCompliant(false)]
|
| 4732 | public Builder AddRepeatedUint32(uint value) {
|
| 4733 | result.repeatedUint32_.Add(value);
|
| 4734 | return this;
|
| 4735 | }
|
| 4736 | [global::System.CLSCompliant(false)]
|
| 4737 | public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
|
| 4738 | base.AddRange(values, result.repeatedUint32_);
|
| 4739 | return this;
|
| 4740 | }
|
| 4741 | public Builder ClearRepeatedUint32() {
|
| 4742 | result.repeatedUint32_.Clear();
|
| 4743 | return this;
|
| 4744 | }
|
| 4745 |
|
| 4746 | [global::System.CLSCompliant(false)]
|
| 4747 | public pbc::IPopsicleList<ulong> RepeatedUint64List {
|
| 4748 | get { return result.repeatedUint64_; }
|
| 4749 | }
|
| 4750 | public int RepeatedUint64Count {
|
| 4751 | get { return result.RepeatedUint64Count; }
|
| 4752 | }
|
| 4753 | [global::System.CLSCompliant(false)]
|
| 4754 | public ulong GetRepeatedUint64(int index) {
|
| 4755 | return result.GetRepeatedUint64(index);
|
| 4756 | }
|
| 4757 | [global::System.CLSCompliant(false)]
|
| 4758 | public Builder SetRepeatedUint64(int index, ulong value) {
|
| 4759 | result.repeatedUint64_[index] = value;
|
| 4760 | return this;
|
| 4761 | }
|
| 4762 | [global::System.CLSCompliant(false)]
|
| 4763 | public Builder AddRepeatedUint64(ulong value) {
|
| 4764 | result.repeatedUint64_.Add(value);
|
| 4765 | return this;
|
| 4766 | }
|
| 4767 | [global::System.CLSCompliant(false)]
|
| 4768 | public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
|
| 4769 | base.AddRange(values, result.repeatedUint64_);
|
| 4770 | return this;
|
| 4771 | }
|
| 4772 | public Builder ClearRepeatedUint64() {
|
| 4773 | result.repeatedUint64_.Clear();
|
| 4774 | return this;
|
| 4775 | }
|
| 4776 |
|
| 4777 | public pbc::IPopsicleList<int> RepeatedSint32List {
|
| 4778 | get { return result.repeatedSint32_; }
|
| 4779 | }
|
| 4780 | public int RepeatedSint32Count {
|
| 4781 | get { return result.RepeatedSint32Count; }
|
| 4782 | }
|
| 4783 | public int GetRepeatedSint32(int index) {
|
| 4784 | return result.GetRepeatedSint32(index);
|
| 4785 | }
|
| 4786 | public Builder SetRepeatedSint32(int index, int value) {
|
| 4787 | result.repeatedSint32_[index] = value;
|
| 4788 | return this;
|
| 4789 | }
|
| 4790 | public Builder AddRepeatedSint32(int value) {
|
| 4791 | result.repeatedSint32_.Add(value);
|
| 4792 | return this;
|
| 4793 | }
|
| 4794 | public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
|
| 4795 | base.AddRange(values, result.repeatedSint32_);
|
| 4796 | return this;
|
| 4797 | }
|
| 4798 | public Builder ClearRepeatedSint32() {
|
| 4799 | result.repeatedSint32_.Clear();
|
| 4800 | return this;
|
| 4801 | }
|
| 4802 |
|
| 4803 | public pbc::IPopsicleList<long> RepeatedSint64List {
|
| 4804 | get { return result.repeatedSint64_; }
|
| 4805 | }
|
| 4806 | public int RepeatedSint64Count {
|
| 4807 | get { return result.RepeatedSint64Count; }
|
| 4808 | }
|
| 4809 | public long GetRepeatedSint64(int index) {
|
| 4810 | return result.GetRepeatedSint64(index);
|
| 4811 | }
|
| 4812 | public Builder SetRepeatedSint64(int index, long value) {
|
| 4813 | result.repeatedSint64_[index] = value;
|
| 4814 | return this;
|
| 4815 | }
|
| 4816 | public Builder AddRepeatedSint64(long value) {
|
| 4817 | result.repeatedSint64_.Add(value);
|
| 4818 | return this;
|
| 4819 | }
|
| 4820 | public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
|
| 4821 | base.AddRange(values, result.repeatedSint64_);
|
| 4822 | return this;
|
| 4823 | }
|
| 4824 | public Builder ClearRepeatedSint64() {
|
| 4825 | result.repeatedSint64_.Clear();
|
| 4826 | return this;
|
| 4827 | }
|
| 4828 |
|
| 4829 | [global::System.CLSCompliant(false)]
|
| 4830 | public pbc::IPopsicleList<uint> RepeatedFixed32List {
|
| 4831 | get { return result.repeatedFixed32_; }
|
| 4832 | }
|
| 4833 | public int RepeatedFixed32Count {
|
| 4834 | get { return result.RepeatedFixed32Count; }
|
| 4835 | }
|
| 4836 | [global::System.CLSCompliant(false)]
|
| 4837 | public uint GetRepeatedFixed32(int index) {
|
| 4838 | return result.GetRepeatedFixed32(index);
|
| 4839 | }
|
| 4840 | [global::System.CLSCompliant(false)]
|
| 4841 | public Builder SetRepeatedFixed32(int index, uint value) {
|
| 4842 | result.repeatedFixed32_[index] = value;
|
| 4843 | return this;
|
| 4844 | }
|
| 4845 | [global::System.CLSCompliant(false)]
|
| 4846 | public Builder AddRepeatedFixed32(uint value) {
|
| 4847 | result.repeatedFixed32_.Add(value);
|
| 4848 | return this;
|
| 4849 | }
|
| 4850 | [global::System.CLSCompliant(false)]
|
| 4851 | public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
|
| 4852 | base.AddRange(values, result.repeatedFixed32_);
|
| 4853 | return this;
|
| 4854 | }
|
| 4855 | public Builder ClearRepeatedFixed32() {
|
| 4856 | result.repeatedFixed32_.Clear();
|
| 4857 | return this;
|
| 4858 | }
|
| 4859 |
|
| 4860 | [global::System.CLSCompliant(false)]
|
| 4861 | public pbc::IPopsicleList<ulong> RepeatedFixed64List {
|
| 4862 | get { return result.repeatedFixed64_; }
|
| 4863 | }
|
| 4864 | public int RepeatedFixed64Count {
|
| 4865 | get { return result.RepeatedFixed64Count; }
|
| 4866 | }
|
| 4867 | [global::System.CLSCompliant(false)]
|
| 4868 | public ulong GetRepeatedFixed64(int index) {
|
| 4869 | return result.GetRepeatedFixed64(index);
|
| 4870 | }
|
| 4871 | [global::System.CLSCompliant(false)]
|
| 4872 | public Builder SetRepeatedFixed64(int index, ulong value) {
|
| 4873 | result.repeatedFixed64_[index] = value;
|
| 4874 | return this;
|
| 4875 | }
|
| 4876 | [global::System.CLSCompliant(false)]
|
| 4877 | public Builder AddRepeatedFixed64(ulong value) {
|
| 4878 | result.repeatedFixed64_.Add(value);
|
| 4879 | return this;
|
| 4880 | }
|
| 4881 | [global::System.CLSCompliant(false)]
|
| 4882 | public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
|
| 4883 | base.AddRange(values, result.repeatedFixed64_);
|
| 4884 | return this;
|
| 4885 | }
|
| 4886 | public Builder ClearRepeatedFixed64() {
|
| 4887 | result.repeatedFixed64_.Clear();
|
| 4888 | return this;
|
| 4889 | }
|
| 4890 |
|
| 4891 | public pbc::IPopsicleList<int> RepeatedSfixed32List {
|
| 4892 | get { return result.repeatedSfixed32_; }
|
| 4893 | }
|
| 4894 | public int RepeatedSfixed32Count {
|
| 4895 | get { return result.RepeatedSfixed32Count; }
|
| 4896 | }
|
| 4897 | public int GetRepeatedSfixed32(int index) {
|
| 4898 | return result.GetRepeatedSfixed32(index);
|
| 4899 | }
|
| 4900 | public Builder SetRepeatedSfixed32(int index, int value) {
|
| 4901 | result.repeatedSfixed32_[index] = value;
|
| 4902 | return this;
|
| 4903 | }
|
| 4904 | public Builder AddRepeatedSfixed32(int value) {
|
| 4905 | result.repeatedSfixed32_.Add(value);
|
| 4906 | return this;
|
| 4907 | }
|
| 4908 | public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
|
| 4909 | base.AddRange(values, result.repeatedSfixed32_);
|
| 4910 | return this;
|
| 4911 | }
|
| 4912 | public Builder ClearRepeatedSfixed32() {
|
| 4913 | result.repeatedSfixed32_.Clear();
|
| 4914 | return this;
|
| 4915 | }
|
| 4916 |
|
| 4917 | public pbc::IPopsicleList<long> RepeatedSfixed64List {
|
| 4918 | get { return result.repeatedSfixed64_; }
|
| 4919 | }
|
| 4920 | public int RepeatedSfixed64Count {
|
| 4921 | get { return result.RepeatedSfixed64Count; }
|
| 4922 | }
|
| 4923 | public long GetRepeatedSfixed64(int index) {
|
| 4924 | return result.GetRepeatedSfixed64(index);
|
| 4925 | }
|
| 4926 | public Builder SetRepeatedSfixed64(int index, long value) {
|
| 4927 | result.repeatedSfixed64_[index] = value;
|
| 4928 | return this;
|
| 4929 | }
|
| 4930 | public Builder AddRepeatedSfixed64(long value) {
|
| 4931 | result.repeatedSfixed64_.Add(value);
|
| 4932 | return this;
|
| 4933 | }
|
| 4934 | public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
|
| 4935 | base.AddRange(values, result.repeatedSfixed64_);
|
| 4936 | return this;
|
| 4937 | }
|
| 4938 | public Builder ClearRepeatedSfixed64() {
|
| 4939 | result.repeatedSfixed64_.Clear();
|
| 4940 | return this;
|
| 4941 | }
|
| 4942 |
|
| 4943 | public pbc::IPopsicleList<float> RepeatedFloatList {
|
| 4944 | get { return result.repeatedFloat_; }
|
| 4945 | }
|
| 4946 | public int RepeatedFloatCount {
|
| 4947 | get { return result.RepeatedFloatCount; }
|
| 4948 | }
|
| 4949 | public float GetRepeatedFloat(int index) {
|
| 4950 | return result.GetRepeatedFloat(index);
|
| 4951 | }
|
| 4952 | public Builder SetRepeatedFloat(int index, float value) {
|
| 4953 | result.repeatedFloat_[index] = value;
|
| 4954 | return this;
|
| 4955 | }
|
| 4956 | public Builder AddRepeatedFloat(float value) {
|
| 4957 | result.repeatedFloat_.Add(value);
|
| 4958 | return this;
|
| 4959 | }
|
| 4960 | public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
|
| 4961 | base.AddRange(values, result.repeatedFloat_);
|
| 4962 | return this;
|
| 4963 | }
|
| 4964 | public Builder ClearRepeatedFloat() {
|
| 4965 | result.repeatedFloat_.Clear();
|
| 4966 | return this;
|
| 4967 | }
|
| 4968 |
|
| 4969 | public pbc::IPopsicleList<double> RepeatedDoubleList {
|
| 4970 | get { return result.repeatedDouble_; }
|
| 4971 | }
|
| 4972 | public int RepeatedDoubleCount {
|
| 4973 | get { return result.RepeatedDoubleCount; }
|
| 4974 | }
|
| 4975 | public double GetRepeatedDouble(int index) {
|
| 4976 | return result.GetRepeatedDouble(index);
|
| 4977 | }
|
| 4978 | public Builder SetRepeatedDouble(int index, double value) {
|
| 4979 | result.repeatedDouble_[index] = value;
|
| 4980 | return this;
|
| 4981 | }
|
| 4982 | public Builder AddRepeatedDouble(double value) {
|
| 4983 | result.repeatedDouble_.Add(value);
|
| 4984 | return this;
|
| 4985 | }
|
| 4986 | public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
|
| 4987 | base.AddRange(values, result.repeatedDouble_);
|
| 4988 | return this;
|
| 4989 | }
|
| 4990 | public Builder ClearRepeatedDouble() {
|
| 4991 | result.repeatedDouble_.Clear();
|
| 4992 | return this;
|
| 4993 | }
|
| 4994 |
|
| 4995 | public pbc::IPopsicleList<bool> RepeatedBoolList {
|
| 4996 | get { return result.repeatedBool_; }
|
| 4997 | }
|
| 4998 | public int RepeatedBoolCount {
|
| 4999 | get { return result.RepeatedBoolCount; }
|
| 5000 | }
|
| 5001 | public bool GetRepeatedBool(int index) {
|
| 5002 | return result.GetRepeatedBool(index);
|
| 5003 | }
|
| 5004 | public Builder SetRepeatedBool(int index, bool value) {
|
| 5005 | result.repeatedBool_[index] = value;
|
| 5006 | return this;
|
| 5007 | }
|
| 5008 | public Builder AddRepeatedBool(bool value) {
|
| 5009 | result.repeatedBool_.Add(value);
|
| 5010 | return this;
|
| 5011 | }
|
| 5012 | public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
|
| 5013 | base.AddRange(values, result.repeatedBool_);
|
| 5014 | return this;
|
| 5015 | }
|
| 5016 | public Builder ClearRepeatedBool() {
|
| 5017 | result.repeatedBool_.Clear();
|
| 5018 | return this;
|
| 5019 | }
|
| 5020 |
|
| 5021 | public pbc::IPopsicleList<string> RepeatedStringList {
|
| 5022 | get { return result.repeatedString_; }
|
| 5023 | }
|
| 5024 | public int RepeatedStringCount {
|
| 5025 | get { return result.RepeatedStringCount; }
|
| 5026 | }
|
| 5027 | public string GetRepeatedString(int index) {
|
| 5028 | return result.GetRepeatedString(index);
|
| 5029 | }
|
| 5030 | public Builder SetRepeatedString(int index, string value) {
|
| 5031 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5032 | result.repeatedString_[index] = value;
|
| 5033 | return this;
|
| 5034 | }
|
| 5035 | public Builder AddRepeatedString(string value) {
|
| 5036 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5037 | result.repeatedString_.Add(value);
|
| 5038 | return this;
|
| 5039 | }
|
| 5040 | public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
|
| 5041 | base.AddRange(values, result.repeatedString_);
|
| 5042 | return this;
|
| 5043 | }
|
| 5044 | public Builder ClearRepeatedString() {
|
| 5045 | result.repeatedString_.Clear();
|
| 5046 | return this;
|
| 5047 | }
|
| 5048 |
|
| 5049 | public pbc::IPopsicleList<pb::ByteString> RepeatedBytesList {
|
| 5050 | get { return result.repeatedBytes_; }
|
| 5051 | }
|
| 5052 | public int RepeatedBytesCount {
|
| 5053 | get { return result.RepeatedBytesCount; }
|
| 5054 | }
|
| 5055 | public pb::ByteString GetRepeatedBytes(int index) {
|
| 5056 | return result.GetRepeatedBytes(index);
|
| 5057 | }
|
| 5058 | public Builder SetRepeatedBytes(int index, pb::ByteString value) {
|
| 5059 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5060 | result.repeatedBytes_[index] = value;
|
| 5061 | return this;
|
| 5062 | }
|
| 5063 | public Builder AddRepeatedBytes(pb::ByteString value) {
|
| 5064 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5065 | result.repeatedBytes_.Add(value);
|
| 5066 | return this;
|
| 5067 | }
|
| 5068 | public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
|
| 5069 | base.AddRange(values, result.repeatedBytes_);
|
| 5070 | return this;
|
| 5071 | }
|
| 5072 | public Builder ClearRepeatedBytes() {
|
| 5073 | result.repeatedBytes_.Clear();
|
| 5074 | return this;
|
| 5075 | }
|
| 5076 |
|
| 5077 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
|
| 5078 | get { return result.repeatedGroup_; }
|
| 5079 | }
|
| 5080 | public int RepeatedGroupCount {
|
| 5081 | get { return result.RepeatedGroupCount; }
|
| 5082 | }
|
| 5083 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
|
| 5084 | return result.GetRepeatedGroup(index);
|
| 5085 | }
|
| 5086 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
|
| 5087 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5088 | result.repeatedGroup_[index] = value;
|
| 5089 | return this;
|
| 5090 | }
|
| 5091 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) {
|
| 5092 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5093 | result.repeatedGroup_[index] = builderForValue.Build();
|
| 5094 | return this;
|
| 5095 | }
|
| 5096 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
|
| 5097 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5098 | result.repeatedGroup_.Add(value);
|
| 5099 | return this;
|
| 5100 | }
|
| 5101 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) {
|
| 5102 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5103 | result.repeatedGroup_.Add(builderForValue.Build());
|
| 5104 | return this;
|
| 5105 | }
|
| 5106 | public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> values) {
|
| 5107 | base.AddRange(values, result.repeatedGroup_);
|
| 5108 | return this;
|
| 5109 | }
|
| 5110 | public Builder ClearRepeatedGroup() {
|
| 5111 | result.repeatedGroup_.Clear();
|
| 5112 | return this;
|
| 5113 | }
|
| 5114 |
|
| 5115 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
|
| 5116 | get { return result.repeatedNestedMessage_; }
|
| 5117 | }
|
| 5118 | public int RepeatedNestedMessageCount {
|
| 5119 | get { return result.RepeatedNestedMessageCount; }
|
| 5120 | }
|
| 5121 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
|
| 5122 | return result.GetRepeatedNestedMessage(index);
|
| 5123 | }
|
| 5124 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 5125 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5126 | result.repeatedNestedMessage_[index] = value;
|
| 5127 | return this;
|
| 5128 | }
|
| 5129 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 5130 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5131 | result.repeatedNestedMessage_[index] = builderForValue.Build();
|
| 5132 | return this;
|
| 5133 | }
|
| 5134 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 5135 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5136 | result.repeatedNestedMessage_.Add(value);
|
| 5137 | return this;
|
| 5138 | }
|
| 5139 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 5140 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5141 | result.repeatedNestedMessage_.Add(builderForValue.Build());
|
| 5142 | return this;
|
| 5143 | }
|
| 5144 | public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> values) {
|
| 5145 | base.AddRange(values, result.repeatedNestedMessage_);
|
| 5146 | return this;
|
| 5147 | }
|
| 5148 | public Builder ClearRepeatedNestedMessage() {
|
| 5149 | result.repeatedNestedMessage_.Clear();
|
| 5150 | return this;
|
| 5151 | }
|
| 5152 |
|
| 5153 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList {
|
| 5154 | get { return result.repeatedForeignMessage_; }
|
| 5155 | }
|
| 5156 | public int RepeatedForeignMessageCount {
|
| 5157 | get { return result.RepeatedForeignMessageCount; }
|
| 5158 | }
|
| 5159 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
|
| 5160 | return result.GetRepeatedForeignMessage(index);
|
| 5161 | }
|
| 5162 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 5163 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5164 | result.repeatedForeignMessage_[index] = value;
|
| 5165 | return this;
|
| 5166 | }
|
| 5167 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 5168 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5169 | result.repeatedForeignMessage_[index] = builderForValue.Build();
|
| 5170 | return this;
|
| 5171 | }
|
| 5172 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 5173 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5174 | result.repeatedForeignMessage_.Add(value);
|
| 5175 | return this;
|
| 5176 | }
|
| 5177 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 5178 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5179 | result.repeatedForeignMessage_.Add(builderForValue.Build());
|
| 5180 | return this;
|
| 5181 | }
|
| 5182 | public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> values) {
|
| 5183 | base.AddRange(values, result.repeatedForeignMessage_);
|
| 5184 | return this;
|
| 5185 | }
|
| 5186 | public Builder ClearRepeatedForeignMessage() {
|
| 5187 | result.repeatedForeignMessage_.Clear();
|
| 5188 | return this;
|
| 5189 | }
|
| 5190 |
|
| 5191 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
|
| 5192 | get { return result.repeatedImportMessage_; }
|
| 5193 | }
|
| 5194 | public int RepeatedImportMessageCount {
|
| 5195 | get { return result.RepeatedImportMessageCount; }
|
| 5196 | }
|
| 5197 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
|
| 5198 | return result.GetRepeatedImportMessage(index);
|
| 5199 | }
|
| 5200 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 5201 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5202 | result.repeatedImportMessage_[index] = value;
|
| 5203 | return this;
|
| 5204 | }
|
| 5205 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 5206 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5207 | result.repeatedImportMessage_[index] = builderForValue.Build();
|
| 5208 | return this;
|
| 5209 | }
|
| 5210 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 5211 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5212 | result.repeatedImportMessage_.Add(value);
|
| 5213 | return this;
|
| 5214 | }
|
| 5215 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 5216 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5217 | result.repeatedImportMessage_.Add(builderForValue.Build());
|
| 5218 | return this;
|
| 5219 | }
|
| 5220 | public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> values) {
|
| 5221 | base.AddRange(values, result.repeatedImportMessage_);
|
| 5222 | return this;
|
| 5223 | }
|
| 5224 | public Builder ClearRepeatedImportMessage() {
|
| 5225 | result.repeatedImportMessage_.Clear();
|
| 5226 | return this;
|
| 5227 | }
|
| 5228 |
|
| 5229 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
|
| 5230 | get { return result.repeatedNestedEnum_; }
|
| 5231 | }
|
| 5232 | public int RepeatedNestedEnumCount {
|
| 5233 | get { return result.RepeatedNestedEnumCount; }
|
| 5234 | }
|
| 5235 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
|
| 5236 | return result.GetRepeatedNestedEnum(index);
|
| 5237 | }
|
| 5238 | public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5239 | result.repeatedNestedEnum_[index] = value;
|
| 5240 | return this;
|
| 5241 | }
|
| 5242 | public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5243 | result.repeatedNestedEnum_.Add(value);
|
| 5244 | return this;
|
| 5245 | }
|
| 5246 | public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> values) {
|
| 5247 | base.AddRange(values, result.repeatedNestedEnum_);
|
| 5248 | return this;
|
| 5249 | }
|
| 5250 | public Builder ClearRepeatedNestedEnum() {
|
| 5251 | result.repeatedNestedEnum_.Clear();
|
| 5252 | return this;
|
| 5253 | }
|
| 5254 |
|
| 5255 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList {
|
| 5256 | get { return result.repeatedForeignEnum_; }
|
| 5257 | }
|
| 5258 | public int RepeatedForeignEnumCount {
|
| 5259 | get { return result.RepeatedForeignEnumCount; }
|
| 5260 | }
|
| 5261 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
|
| 5262 | return result.GetRepeatedForeignEnum(index);
|
| 5263 | }
|
| 5264 | public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5265 | result.repeatedForeignEnum_[index] = value;
|
| 5266 | return this;
|
| 5267 | }
|
| 5268 | public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5269 | result.repeatedForeignEnum_.Add(value);
|
| 5270 | return this;
|
| 5271 | }
|
| 5272 | public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
|
| 5273 | base.AddRange(values, result.repeatedForeignEnum_);
|
| 5274 | return this;
|
| 5275 | }
|
| 5276 | public Builder ClearRepeatedForeignEnum() {
|
| 5277 | result.repeatedForeignEnum_.Clear();
|
| 5278 | return this;
|
| 5279 | }
|
| 5280 |
|
| 5281 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
|
| 5282 | get { return result.repeatedImportEnum_; }
|
| 5283 | }
|
| 5284 | public int RepeatedImportEnumCount {
|
| 5285 | get { return result.RepeatedImportEnumCount; }
|
| 5286 | }
|
| 5287 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) {
|
| 5288 | return result.GetRepeatedImportEnum(index);
|
| 5289 | }
|
| 5290 | public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5291 | result.repeatedImportEnum_[index] = value;
|
| 5292 | return this;
|
| 5293 | }
|
| 5294 | public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5295 | result.repeatedImportEnum_.Add(value);
|
| 5296 | return this;
|
| 5297 | }
|
| 5298 | public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> values) {
|
| 5299 | base.AddRange(values, result.repeatedImportEnum_);
|
| 5300 | return this;
|
| 5301 | }
|
| 5302 | public Builder ClearRepeatedImportEnum() {
|
| 5303 | result.repeatedImportEnum_.Clear();
|
| 5304 | return this;
|
| 5305 | }
|
| 5306 |
|
| 5307 | public pbc::IPopsicleList<string> RepeatedStringPieceList {
|
| 5308 | get { return result.repeatedStringPiece_; }
|
| 5309 | }
|
| 5310 | public int RepeatedStringPieceCount {
|
| 5311 | get { return result.RepeatedStringPieceCount; }
|
| 5312 | }
|
| 5313 | public string GetRepeatedStringPiece(int index) {
|
| 5314 | return result.GetRepeatedStringPiece(index);
|
| 5315 | }
|
| 5316 | public Builder SetRepeatedStringPiece(int index, string value) {
|
| 5317 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5318 | result.repeatedStringPiece_[index] = value;
|
| 5319 | return this;
|
| 5320 | }
|
| 5321 | public Builder AddRepeatedStringPiece(string value) {
|
| 5322 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5323 | result.repeatedStringPiece_.Add(value);
|
| 5324 | return this;
|
| 5325 | }
|
| 5326 | public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
|
| 5327 | base.AddRange(values, result.repeatedStringPiece_);
|
| 5328 | return this;
|
| 5329 | }
|
| 5330 | public Builder ClearRepeatedStringPiece() {
|
| 5331 | result.repeatedStringPiece_.Clear();
|
| 5332 | return this;
|
| 5333 | }
|
| 5334 |
|
| 5335 | public pbc::IPopsicleList<string> RepeatedCordList {
|
| 5336 | get { return result.repeatedCord_; }
|
| 5337 | }
|
| 5338 | public int RepeatedCordCount {
|
| 5339 | get { return result.RepeatedCordCount; }
|
| 5340 | }
|
| 5341 | public string GetRepeatedCord(int index) {
|
| 5342 | return result.GetRepeatedCord(index);
|
| 5343 | }
|
| 5344 | public Builder SetRepeatedCord(int index, string value) {
|
| 5345 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5346 | result.repeatedCord_[index] = value;
|
| 5347 | return this;
|
| 5348 | }
|
| 5349 | public Builder AddRepeatedCord(string value) {
|
| 5350 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5351 | result.repeatedCord_.Add(value);
|
| 5352 | return this;
|
| 5353 | }
|
| 5354 | public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
|
| 5355 | base.AddRange(values, result.repeatedCord_);
|
| 5356 | return this;
|
| 5357 | }
|
| 5358 | public Builder ClearRepeatedCord() {
|
| 5359 | result.repeatedCord_.Clear();
|
| 5360 | return this;
|
| 5361 | }
|
| 5362 |
|
| 5363 | public bool HasDefaultInt32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5364 | get { return result.hasDefaultInt32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5365 | }
|
| 5366 | public int DefaultInt32 {
|
| 5367 | get { return result.DefaultInt32; }
|
| 5368 | set { SetDefaultInt32(value); }
|
| 5369 | }
|
| 5370 | public Builder SetDefaultInt32(int value) {
|
| 5371 | result.hasDefaultInt32 = true;
|
| 5372 | result.defaultInt32_ = value;
|
| 5373 | return this;
|
| 5374 | }
|
| 5375 | public Builder ClearDefaultInt32() {
|
| 5376 | result.hasDefaultInt32 = false;
|
| 5377 | result.defaultInt32_ = 41;
|
| 5378 | return this;
|
| 5379 | }
|
| 5380 |
|
| 5381 | public bool HasDefaultInt64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5382 | get { return result.hasDefaultInt64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5383 | }
|
| 5384 | public long DefaultInt64 {
|
| 5385 | get { return result.DefaultInt64; }
|
| 5386 | set { SetDefaultInt64(value); }
|
| 5387 | }
|
| 5388 | public Builder SetDefaultInt64(long value) {
|
| 5389 | result.hasDefaultInt64 = true;
|
| 5390 | result.defaultInt64_ = value;
|
| 5391 | return this;
|
| 5392 | }
|
| 5393 | public Builder ClearDefaultInt64() {
|
| 5394 | result.hasDefaultInt64 = false;
|
| 5395 | result.defaultInt64_ = 42L;
|
| 5396 | return this;
|
| 5397 | }
|
| 5398 |
|
| 5399 | public bool HasDefaultUint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5400 | get { return result.hasDefaultUint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5401 | }
|
| 5402 | [global::System.CLSCompliant(false)]
|
| 5403 | public uint DefaultUint32 {
|
| 5404 | get { return result.DefaultUint32; }
|
| 5405 | set { SetDefaultUint32(value); }
|
| 5406 | }
|
| 5407 | [global::System.CLSCompliant(false)]
|
| 5408 | public Builder SetDefaultUint32(uint value) {
|
| 5409 | result.hasDefaultUint32 = true;
|
| 5410 | result.defaultUint32_ = value;
|
| 5411 | return this;
|
| 5412 | }
|
| 5413 | public Builder ClearDefaultUint32() {
|
| 5414 | result.hasDefaultUint32 = false;
|
| 5415 | result.defaultUint32_ = 43;
|
| 5416 | return this;
|
| 5417 | }
|
| 5418 |
|
| 5419 | public bool HasDefaultUint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5420 | get { return result.hasDefaultUint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5421 | }
|
| 5422 | [global::System.CLSCompliant(false)]
|
| 5423 | public ulong DefaultUint64 {
|
| 5424 | get { return result.DefaultUint64; }
|
| 5425 | set { SetDefaultUint64(value); }
|
| 5426 | }
|
| 5427 | [global::System.CLSCompliant(false)]
|
| 5428 | public Builder SetDefaultUint64(ulong value) {
|
| 5429 | result.hasDefaultUint64 = true;
|
| 5430 | result.defaultUint64_ = value;
|
| 5431 | return this;
|
| 5432 | }
|
| 5433 | public Builder ClearDefaultUint64() {
|
| 5434 | result.hasDefaultUint64 = false;
|
| 5435 | result.defaultUint64_ = 44UL;
|
| 5436 | return this;
|
| 5437 | }
|
| 5438 |
|
| 5439 | public bool HasDefaultSint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5440 | get { return result.hasDefaultSint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5441 | }
|
| 5442 | public int DefaultSint32 {
|
| 5443 | get { return result.DefaultSint32; }
|
| 5444 | set { SetDefaultSint32(value); }
|
| 5445 | }
|
| 5446 | public Builder SetDefaultSint32(int value) {
|
| 5447 | result.hasDefaultSint32 = true;
|
| 5448 | result.defaultSint32_ = value;
|
| 5449 | return this;
|
| 5450 | }
|
| 5451 | public Builder ClearDefaultSint32() {
|
| 5452 | result.hasDefaultSint32 = false;
|
| 5453 | result.defaultSint32_ = -45;
|
| 5454 | return this;
|
| 5455 | }
|
| 5456 |
|
| 5457 | public bool HasDefaultSint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5458 | get { return result.hasDefaultSint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5459 | }
|
| 5460 | public long DefaultSint64 {
|
| 5461 | get { return result.DefaultSint64; }
|
| 5462 | set { SetDefaultSint64(value); }
|
| 5463 | }
|
| 5464 | public Builder SetDefaultSint64(long value) {
|
| 5465 | result.hasDefaultSint64 = true;
|
| 5466 | result.defaultSint64_ = value;
|
| 5467 | return this;
|
| 5468 | }
|
| 5469 | public Builder ClearDefaultSint64() {
|
| 5470 | result.hasDefaultSint64 = false;
|
| 5471 | result.defaultSint64_ = 46;
|
| 5472 | return this;
|
| 5473 | }
|
| 5474 |
|
| 5475 | public bool HasDefaultFixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5476 | get { return result.hasDefaultFixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5477 | }
|
| 5478 | [global::System.CLSCompliant(false)]
|
| 5479 | public uint DefaultFixed32 {
|
| 5480 | get { return result.DefaultFixed32; }
|
| 5481 | set { SetDefaultFixed32(value); }
|
| 5482 | }
|
| 5483 | [global::System.CLSCompliant(false)]
|
| 5484 | public Builder SetDefaultFixed32(uint value) {
|
| 5485 | result.hasDefaultFixed32 = true;
|
| 5486 | result.defaultFixed32_ = value;
|
| 5487 | return this;
|
| 5488 | }
|
| 5489 | public Builder ClearDefaultFixed32() {
|
| 5490 | result.hasDefaultFixed32 = false;
|
| 5491 | result.defaultFixed32_ = 47;
|
| 5492 | return this;
|
| 5493 | }
|
| 5494 |
|
| 5495 | public bool HasDefaultFixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5496 | get { return result.hasDefaultFixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5497 | }
|
| 5498 | [global::System.CLSCompliant(false)]
|
| 5499 | public ulong DefaultFixed64 {
|
| 5500 | get { return result.DefaultFixed64; }
|
| 5501 | set { SetDefaultFixed64(value); }
|
| 5502 | }
|
| 5503 | [global::System.CLSCompliant(false)]
|
| 5504 | public Builder SetDefaultFixed64(ulong value) {
|
| 5505 | result.hasDefaultFixed64 = true;
|
| 5506 | result.defaultFixed64_ = value;
|
| 5507 | return this;
|
| 5508 | }
|
| 5509 | public Builder ClearDefaultFixed64() {
|
| 5510 | result.hasDefaultFixed64 = false;
|
| 5511 | result.defaultFixed64_ = 48;
|
| 5512 | return this;
|
| 5513 | }
|
| 5514 |
|
| 5515 | public bool HasDefaultSfixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5516 | get { return result.hasDefaultSfixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5517 | }
|
| 5518 | public int DefaultSfixed32 {
|
| 5519 | get { return result.DefaultSfixed32; }
|
| 5520 | set { SetDefaultSfixed32(value); }
|
| 5521 | }
|
| 5522 | public Builder SetDefaultSfixed32(int value) {
|
| 5523 | result.hasDefaultSfixed32 = true;
|
| 5524 | result.defaultSfixed32_ = value;
|
| 5525 | return this;
|
| 5526 | }
|
| 5527 | public Builder ClearDefaultSfixed32() {
|
| 5528 | result.hasDefaultSfixed32 = false;
|
| 5529 | result.defaultSfixed32_ = 49;
|
| 5530 | return this;
|
| 5531 | }
|
| 5532 |
|
| 5533 | public bool HasDefaultSfixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5534 | get { return result.hasDefaultSfixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5535 | }
|
| 5536 | public long DefaultSfixed64 {
|
| 5537 | get { return result.DefaultSfixed64; }
|
| 5538 | set { SetDefaultSfixed64(value); }
|
| 5539 | }
|
| 5540 | public Builder SetDefaultSfixed64(long value) {
|
| 5541 | result.hasDefaultSfixed64 = true;
|
| 5542 | result.defaultSfixed64_ = value;
|
| 5543 | return this;
|
| 5544 | }
|
| 5545 | public Builder ClearDefaultSfixed64() {
|
| 5546 | result.hasDefaultSfixed64 = false;
|
| 5547 | result.defaultSfixed64_ = -50;
|
| 5548 | return this;
|
| 5549 | }
|
| 5550 |
|
| 5551 | public bool HasDefaultFloat {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5552 | get { return result.hasDefaultFloat; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5553 | }
|
| 5554 | public float DefaultFloat {
|
| 5555 | get { return result.DefaultFloat; }
|
| 5556 | set { SetDefaultFloat(value); }
|
| 5557 | }
|
| 5558 | public Builder SetDefaultFloat(float value) {
|
| 5559 | result.hasDefaultFloat = true;
|
| 5560 | result.defaultFloat_ = value;
|
| 5561 | return this;
|
| 5562 | }
|
| 5563 | public Builder ClearDefaultFloat() {
|
| 5564 | result.hasDefaultFloat = false;
|
| 5565 | result.defaultFloat_ = 51.5F;
|
| 5566 | return this;
|
| 5567 | }
|
| 5568 |
|
| 5569 | public bool HasDefaultDouble {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5570 | get { return result.hasDefaultDouble; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5571 | }
|
| 5572 | public double DefaultDouble {
|
| 5573 | get { return result.DefaultDouble; }
|
| 5574 | set { SetDefaultDouble(value); }
|
| 5575 | }
|
| 5576 | public Builder SetDefaultDouble(double value) {
|
| 5577 | result.hasDefaultDouble = true;
|
| 5578 | result.defaultDouble_ = value;
|
| 5579 | return this;
|
| 5580 | }
|
| 5581 | public Builder ClearDefaultDouble() {
|
| 5582 | result.hasDefaultDouble = false;
|
| 5583 | result.defaultDouble_ = 52000D;
|
| 5584 | return this;
|
| 5585 | }
|
| 5586 |
|
| 5587 | public bool HasDefaultBool {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5588 | get { return result.hasDefaultBool; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5589 | }
|
| 5590 | public bool DefaultBool {
|
| 5591 | get { return result.DefaultBool; }
|
| 5592 | set { SetDefaultBool(value); }
|
| 5593 | }
|
| 5594 | public Builder SetDefaultBool(bool value) {
|
| 5595 | result.hasDefaultBool = true;
|
| 5596 | result.defaultBool_ = value;
|
| 5597 | return this;
|
| 5598 | }
|
| 5599 | public Builder ClearDefaultBool() {
|
| 5600 | result.hasDefaultBool = false;
|
| 5601 | result.defaultBool_ = true;
|
| 5602 | return this;
|
| 5603 | }
|
| 5604 |
|
| 5605 | public bool HasDefaultString {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5606 | get { return result.hasDefaultString; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5607 | }
|
| 5608 | public string DefaultString {
|
| 5609 | get { return result.DefaultString; }
|
| 5610 | set { SetDefaultString(value); }
|
| 5611 | }
|
| 5612 | public Builder SetDefaultString(string value) {
|
| 5613 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5614 | result.hasDefaultString = true;
|
| 5615 | result.defaultString_ = value;
|
| 5616 | return this;
|
| 5617 | }
|
| 5618 | public Builder ClearDefaultString() {
|
| 5619 | result.hasDefaultString = false;
|
| 5620 | result.defaultString_ = "hello";
|
| 5621 | return this;
|
| 5622 | }
|
| 5623 |
|
| 5624 | public bool HasDefaultBytes {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5625 | get { return result.hasDefaultBytes; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5626 | }
|
| 5627 | public pb::ByteString DefaultBytes {
|
| 5628 | get { return result.DefaultBytes; }
|
| 5629 | set { SetDefaultBytes(value); }
|
| 5630 | }
|
| 5631 | public Builder SetDefaultBytes(pb::ByteString value) {
|
| 5632 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5633 | result.hasDefaultBytes = true;
|
| 5634 | result.defaultBytes_ = value;
|
| 5635 | return this;
|
| 5636 | }
|
| 5637 | public Builder ClearDefaultBytes() {
|
| 5638 | result.hasDefaultBytes = false;
|
| 5639 | result.defaultBytes_ = ByteString.FromBase64("d29ybGQ=");
|
| 5640 | return this;
|
| 5641 | }
|
| 5642 |
|
| 5643 | public bool HasDefaultNestedEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5644 | get { return result.hasDefaultNestedEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5645 | }
|
| 5646 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
|
| 5647 | get { return result.DefaultNestedEnum; }
|
| 5648 | set { SetDefaultNestedEnum(value); }
|
| 5649 | }
|
| 5650 | public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5651 | result.hasDefaultNestedEnum = true;
|
| 5652 | result.defaultNestedEnum_ = value;
|
| 5653 | return this;
|
| 5654 | }
|
| 5655 | public Builder ClearDefaultNestedEnum() {
|
| 5656 | result.hasDefaultNestedEnum = false;
|
| 5657 | result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR;
|
| 5658 | return this;
|
| 5659 | }
|
| 5660 |
|
| 5661 | public bool HasDefaultForeignEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5662 | get { return result.hasDefaultForeignEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5663 | }
|
| 5664 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
|
| 5665 | get { return result.DefaultForeignEnum; }
|
| 5666 | set { SetDefaultForeignEnum(value); }
|
| 5667 | }
|
| 5668 | public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5669 | result.hasDefaultForeignEnum = true;
|
| 5670 | result.defaultForeignEnum_ = value;
|
| 5671 | return this;
|
| 5672 | }
|
| 5673 | public Builder ClearDefaultForeignEnum() {
|
| 5674 | result.hasDefaultForeignEnum = false;
|
| 5675 | result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
|
| 5676 | return this;
|
| 5677 | }
|
| 5678 |
|
| 5679 | public bool HasDefaultImportEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5680 | get { return result.hasDefaultImportEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5681 | }
|
| 5682 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum {
|
| 5683 | get { return result.DefaultImportEnum; }
|
| 5684 | set { SetDefaultImportEnum(value); }
|
| 5685 | }
|
| 5686 | public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5687 | result.hasDefaultImportEnum = true;
|
| 5688 | result.defaultImportEnum_ = value;
|
| 5689 | return this;
|
| 5690 | }
|
| 5691 | public Builder ClearDefaultImportEnum() {
|
| 5692 | result.hasDefaultImportEnum = false;
|
| 5693 | result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR;
|
| 5694 | return this;
|
| 5695 | }
|
| 5696 |
|
| 5697 | public bool HasDefaultStringPiece {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5698 | get { return result.hasDefaultStringPiece; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5699 | }
|
| 5700 | public string DefaultStringPiece {
|
| 5701 | get { return result.DefaultStringPiece; }
|
| 5702 | set { SetDefaultStringPiece(value); }
|
| 5703 | }
|
| 5704 | public Builder SetDefaultStringPiece(string value) {
|
| 5705 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5706 | result.hasDefaultStringPiece = true;
|
| 5707 | result.defaultStringPiece_ = value;
|
| 5708 | return this;
|
| 5709 | }
|
| 5710 | public Builder ClearDefaultStringPiece() {
|
| 5711 | result.hasDefaultStringPiece = false;
|
| 5712 | result.defaultStringPiece_ = "abc";
|
| 5713 | return this;
|
| 5714 | }
|
| 5715 |
|
| 5716 | public bool HasDefaultCord {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5717 | get { return result.hasDefaultCord; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5718 | }
|
| 5719 | public string DefaultCord {
|
| 5720 | get { return result.DefaultCord; }
|
| 5721 | set { SetDefaultCord(value); }
|
| 5722 | }
|
| 5723 | public Builder SetDefaultCord(string value) {
|
| 5724 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5725 | result.hasDefaultCord = true;
|
| 5726 | result.defaultCord_ = value;
|
| 5727 | return this;
|
| 5728 | }
|
| 5729 | public Builder ClearDefaultCord() {
|
| 5730 | result.hasDefaultCord = false;
|
| 5731 | result.defaultCord_ = "123";
|
| 5732 | return this;
|
| 5733 | }
|
| 5734 | }
|
| 5735 | static TestAllTypesLite() {
|
| 5736 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 5737 | }
|
| 5738 | }
|
| 5739 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 5740 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 5741 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 5742 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5743 | public sealed partial class ForeignMessageLite : pb::GeneratedMessageLite<ForeignMessageLite, ForeignMessageLite.Builder> {
|
| 5744 | private static readonly ForeignMessageLite defaultInstance = new Builder().BuildPartial();
|
| 5745 | public static ForeignMessageLite DefaultInstance {
|
| 5746 | get { return defaultInstance; }
|
| 5747 | }
|
| 5748 |
|
| 5749 | public override ForeignMessageLite DefaultInstanceForType {
|
| 5750 | get { return defaultInstance; }
|
| 5751 | }
|
| 5752 |
|
| 5753 | protected override ForeignMessageLite ThisMessage {
|
| 5754 | get { return this; }
|
| 5755 | }
|
| 5756 |
|
| 5757 | public const int CFieldNumber = 1;
|
| 5758 | private bool hasC;
|
| 5759 | private int c_ = 0;
|
| 5760 | public bool HasC {
|
| 5761 | get { return hasC; }
|
| 5762 | }
|
| 5763 | public int C {
|
| 5764 | get { return c_; }
|
| 5765 | }
|
| 5766 |
|
| 5767 | public override bool IsInitialized {
|
| 5768 | get {
|
| 5769 | return true;
|
| 5770 | }
|
| 5771 | }
|
| 5772 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 5773 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5774 | int size = SerializedSize;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5775 | if (hasC) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 5776 | output.WriteInt32(1, "c", C);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5777 | }
|
| 5778 | }
|
| 5779 |
|
| 5780 | private int memoizedSerializedSize = -1;
|
| 5781 | public override int SerializedSize {
|
| 5782 | get {
|
| 5783 | int size = memoizedSerializedSize;
|
| 5784 | if (size != -1) return size;
|
| 5785 |
|
| 5786 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5787 | if (hasC) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5788 | size += pb::CodedOutputStream.ComputeInt32Size(1, C);
|
| 5789 | }
|
| 5790 | memoizedSerializedSize = size;
|
| 5791 | return size;
|
| 5792 | }
|
| 5793 | }
|
| 5794 |
|
| 5795 | #region Lite runtime methods
|
| 5796 | public override int GetHashCode() {
|
| 5797 | int hash = GetType().GetHashCode();
|
| 5798 | if (hasC) hash ^= c_.GetHashCode();
|
| 5799 | return hash;
|
| 5800 | }
|
| 5801 |
|
| 5802 | public override bool Equals(object obj) {
|
| 5803 | ForeignMessageLite other = obj as ForeignMessageLite;
|
| 5804 | if (other == null) return false;
|
| 5805 | if (hasC != other.hasC || (hasC && !c_.Equals(other.c_))) return false;
|
| 5806 | return true;
|
| 5807 | }
|
| 5808 |
|
| 5809 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 5810 | PrintField("c", hasC, c_, writer);
|
| 5811 | }
|
| 5812 | #endregion
|
| 5813 |
|
| 5814 | public static ForeignMessageLite ParseFrom(pb::ByteString data) {
|
| 5815 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 5816 | }
|
| 5817 | public static ForeignMessageLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 5818 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 5819 | }
|
| 5820 | public static ForeignMessageLite ParseFrom(byte[] data) {
|
| 5821 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 5822 | }
|
| 5823 | public static ForeignMessageLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 5824 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 5825 | }
|
| 5826 | public static ForeignMessageLite ParseFrom(global::System.IO.Stream input) {
|
| 5827 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 5828 | }
|
| 5829 | public static ForeignMessageLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 5830 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 5831 | }
|
| 5832 | public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 5833 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 5834 | }
|
| 5835 | public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 5836 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 5837 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5838 | public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5839 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 5840 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5841 | public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5842 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 5843 | }
|
| 5844 | public static Builder CreateBuilder() { return new Builder(); }
|
| 5845 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 5846 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 5847 | public static Builder CreateBuilder(ForeignMessageLite prototype) {
|
| 5848 | return (Builder) new Builder().MergeFrom(prototype);
|
| 5849 | }
|
| 5850 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 5851 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 5852 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 5853 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5854 | public sealed partial class Builder : pb::GeneratedBuilderLite<ForeignMessageLite, Builder> {
|
| 5855 | protected override Builder ThisBuilder {
|
| 5856 | get { return this; }
|
| 5857 | }
|
| 5858 | public Builder() {}
|
| 5859 |
|
| 5860 | ForeignMessageLite result = new ForeignMessageLite();
|
| 5861 |
|
| 5862 | protected override ForeignMessageLite MessageBeingBuilt {
|
| 5863 | get { return result; }
|
| 5864 | }
|
| 5865 |
|
| 5866 | public override Builder Clear() {
|
| 5867 | result = new ForeignMessageLite();
|
| 5868 | return this;
|
| 5869 | }
|
| 5870 |
|
| 5871 | public override Builder Clone() {
|
| 5872 | return new Builder().MergeFrom(result);
|
| 5873 | }
|
| 5874 |
|
| 5875 | public override ForeignMessageLite DefaultInstanceForType {
|
| 5876 | get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; }
|
| 5877 | }
|
| 5878 |
|
| 5879 | public override ForeignMessageLite BuildPartial() {
|
| 5880 | if (result == null) {
|
| 5881 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 5882 | }
|
| 5883 | ForeignMessageLite returnMe = result;
|
| 5884 | result = null;
|
| 5885 | return returnMe;
|
| 5886 | }
|
| 5887 |
|
| 5888 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 5889 | if (other is ForeignMessageLite) {
|
| 5890 | return MergeFrom((ForeignMessageLite) other);
|
| 5891 | } else {
|
| 5892 | base.MergeFrom(other);
|
| 5893 | return this;
|
| 5894 | }
|
| 5895 | }
|
| 5896 |
|
| 5897 | public override Builder MergeFrom(ForeignMessageLite other) {
|
| 5898 | if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) return this;
|
| 5899 | if (other.HasC) {
|
| 5900 | C = other.C;
|
| 5901 | }
|
| 5902 | return this;
|
| 5903 | }
|
| 5904 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5905 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5906 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 5907 | }
|
| 5908 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5909 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 5910 | uint tag;
|
| 5911 | string field_name;
|
| 5912 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5913 | switch (tag) {
|
| 5914 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 5915 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5916 | }
|
| 5917 | default: {
|
| 5918 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 5919 | return this;
|
| 5920 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 5921 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5922 | break;
|
| 5923 | }
|
| 5924 | case 8: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 5925 | result.hasC |= input.ReadInt32(ref result.c_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5926 | break;
|
| 5927 | }
|
| 5928 | }
|
| 5929 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 5930 |
|
| 5931 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5932 | }
|
| 5933 |
|
| 5934 |
|
| 5935 | public bool HasC {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5936 | get { return result.hasC; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5937 | }
|
| 5938 | public int C {
|
| 5939 | get { return result.C; }
|
| 5940 | set { SetC(value); }
|
| 5941 | }
|
| 5942 | public Builder SetC(int value) {
|
| 5943 | result.hasC = true;
|
| 5944 | result.c_ = value;
|
| 5945 | return this;
|
| 5946 | }
|
| 5947 | public Builder ClearC() {
|
| 5948 | result.hasC = false;
|
| 5949 | result.c_ = 0;
|
| 5950 | return this;
|
| 5951 | }
|
| 5952 | }
|
| 5953 | static ForeignMessageLite() {
|
| 5954 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 5955 | }
|
| 5956 | }
|
| 5957 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 5958 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 5959 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 5960 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5961 | public sealed partial class TestPackedTypesLite : pb::GeneratedMessageLite<TestPackedTypesLite, TestPackedTypesLite.Builder> {
|
| 5962 | private static readonly TestPackedTypesLite defaultInstance = new Builder().BuildPartial();
|
| 5963 | public static TestPackedTypesLite DefaultInstance {
|
| 5964 | get { return defaultInstance; }
|
| 5965 | }
|
| 5966 |
|
| 5967 | public override TestPackedTypesLite DefaultInstanceForType {
|
| 5968 | get { return defaultInstance; }
|
| 5969 | }
|
| 5970 |
|
| 5971 | protected override TestPackedTypesLite ThisMessage {
|
| 5972 | get { return this; }
|
| 5973 | }
|
| 5974 |
|
| 5975 | public const int PackedInt32FieldNumber = 90;
|
| 5976 | private int packedInt32MemoizedSerializedSize;
|
| 5977 | private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>();
|
| 5978 | public scg::IList<int> PackedInt32List {
|
| 5979 | get { return pbc::Lists.AsReadOnly(packedInt32_); }
|
| 5980 | }
|
| 5981 | public int PackedInt32Count {
|
| 5982 | get { return packedInt32_.Count; }
|
| 5983 | }
|
| 5984 | public int GetPackedInt32(int index) {
|
| 5985 | return packedInt32_[index];
|
| 5986 | }
|
| 5987 |
|
| 5988 | public const int PackedInt64FieldNumber = 91;
|
| 5989 | private int packedInt64MemoizedSerializedSize;
|
| 5990 | private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>();
|
| 5991 | public scg::IList<long> PackedInt64List {
|
| 5992 | get { return pbc::Lists.AsReadOnly(packedInt64_); }
|
| 5993 | }
|
| 5994 | public int PackedInt64Count {
|
| 5995 | get { return packedInt64_.Count; }
|
| 5996 | }
|
| 5997 | public long GetPackedInt64(int index) {
|
| 5998 | return packedInt64_[index];
|
| 5999 | }
|
| 6000 |
|
| 6001 | public const int PackedUint32FieldNumber = 92;
|
| 6002 | private int packedUint32MemoizedSerializedSize;
|
| 6003 | private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>();
|
| 6004 | [global::System.CLSCompliant(false)]
|
| 6005 | public scg::IList<uint> PackedUint32List {
|
| 6006 | get { return pbc::Lists.AsReadOnly(packedUint32_); }
|
| 6007 | }
|
| 6008 | public int PackedUint32Count {
|
| 6009 | get { return packedUint32_.Count; }
|
| 6010 | }
|
| 6011 | [global::System.CLSCompliant(false)]
|
| 6012 | public uint GetPackedUint32(int index) {
|
| 6013 | return packedUint32_[index];
|
| 6014 | }
|
| 6015 |
|
| 6016 | public const int PackedUint64FieldNumber = 93;
|
| 6017 | private int packedUint64MemoizedSerializedSize;
|
| 6018 | private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>();
|
| 6019 | [global::System.CLSCompliant(false)]
|
| 6020 | public scg::IList<ulong> PackedUint64List {
|
| 6021 | get { return pbc::Lists.AsReadOnly(packedUint64_); }
|
| 6022 | }
|
| 6023 | public int PackedUint64Count {
|
| 6024 | get { return packedUint64_.Count; }
|
| 6025 | }
|
| 6026 | [global::System.CLSCompliant(false)]
|
| 6027 | public ulong GetPackedUint64(int index) {
|
| 6028 | return packedUint64_[index];
|
| 6029 | }
|
| 6030 |
|
| 6031 | public const int PackedSint32FieldNumber = 94;
|
| 6032 | private int packedSint32MemoizedSerializedSize;
|
| 6033 | private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>();
|
| 6034 | public scg::IList<int> PackedSint32List {
|
| 6035 | get { return pbc::Lists.AsReadOnly(packedSint32_); }
|
| 6036 | }
|
| 6037 | public int PackedSint32Count {
|
| 6038 | get { return packedSint32_.Count; }
|
| 6039 | }
|
| 6040 | public int GetPackedSint32(int index) {
|
| 6041 | return packedSint32_[index];
|
| 6042 | }
|
| 6043 |
|
| 6044 | public const int PackedSint64FieldNumber = 95;
|
| 6045 | private int packedSint64MemoizedSerializedSize;
|
| 6046 | private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>();
|
| 6047 | public scg::IList<long> PackedSint64List {
|
| 6048 | get { return pbc::Lists.AsReadOnly(packedSint64_); }
|
| 6049 | }
|
| 6050 | public int PackedSint64Count {
|
| 6051 | get { return packedSint64_.Count; }
|
| 6052 | }
|
| 6053 | public long GetPackedSint64(int index) {
|
| 6054 | return packedSint64_[index];
|
| 6055 | }
|
| 6056 |
|
| 6057 | public const int PackedFixed32FieldNumber = 96;
|
| 6058 | private int packedFixed32MemoizedSerializedSize;
|
| 6059 | private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>();
|
| 6060 | [global::System.CLSCompliant(false)]
|
| 6061 | public scg::IList<uint> PackedFixed32List {
|
| 6062 | get { return pbc::Lists.AsReadOnly(packedFixed32_); }
|
| 6063 | }
|
| 6064 | public int PackedFixed32Count {
|
| 6065 | get { return packedFixed32_.Count; }
|
| 6066 | }
|
| 6067 | [global::System.CLSCompliant(false)]
|
| 6068 | public uint GetPackedFixed32(int index) {
|
| 6069 | return packedFixed32_[index];
|
| 6070 | }
|
| 6071 |
|
| 6072 | public const int PackedFixed64FieldNumber = 97;
|
| 6073 | private int packedFixed64MemoizedSerializedSize;
|
| 6074 | private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>();
|
| 6075 | [global::System.CLSCompliant(false)]
|
| 6076 | public scg::IList<ulong> PackedFixed64List {
|
| 6077 | get { return pbc::Lists.AsReadOnly(packedFixed64_); }
|
| 6078 | }
|
| 6079 | public int PackedFixed64Count {
|
| 6080 | get { return packedFixed64_.Count; }
|
| 6081 | }
|
| 6082 | [global::System.CLSCompliant(false)]
|
| 6083 | public ulong GetPackedFixed64(int index) {
|
| 6084 | return packedFixed64_[index];
|
| 6085 | }
|
| 6086 |
|
| 6087 | public const int PackedSfixed32FieldNumber = 98;
|
| 6088 | private int packedSfixed32MemoizedSerializedSize;
|
| 6089 | private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>();
|
| 6090 | public scg::IList<int> PackedSfixed32List {
|
| 6091 | get { return pbc::Lists.AsReadOnly(packedSfixed32_); }
|
| 6092 | }
|
| 6093 | public int PackedSfixed32Count {
|
| 6094 | get { return packedSfixed32_.Count; }
|
| 6095 | }
|
| 6096 | public int GetPackedSfixed32(int index) {
|
| 6097 | return packedSfixed32_[index];
|
| 6098 | }
|
| 6099 |
|
| 6100 | public const int PackedSfixed64FieldNumber = 99;
|
| 6101 | private int packedSfixed64MemoizedSerializedSize;
|
| 6102 | private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>();
|
| 6103 | public scg::IList<long> PackedSfixed64List {
|
| 6104 | get { return pbc::Lists.AsReadOnly(packedSfixed64_); }
|
| 6105 | }
|
| 6106 | public int PackedSfixed64Count {
|
| 6107 | get { return packedSfixed64_.Count; }
|
| 6108 | }
|
| 6109 | public long GetPackedSfixed64(int index) {
|
| 6110 | return packedSfixed64_[index];
|
| 6111 | }
|
| 6112 |
|
| 6113 | public const int PackedFloatFieldNumber = 100;
|
| 6114 | private int packedFloatMemoizedSerializedSize;
|
| 6115 | private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>();
|
| 6116 | public scg::IList<float> PackedFloatList {
|
| 6117 | get { return pbc::Lists.AsReadOnly(packedFloat_); }
|
| 6118 | }
|
| 6119 | public int PackedFloatCount {
|
| 6120 | get { return packedFloat_.Count; }
|
| 6121 | }
|
| 6122 | public float GetPackedFloat(int index) {
|
| 6123 | return packedFloat_[index];
|
| 6124 | }
|
| 6125 |
|
| 6126 | public const int PackedDoubleFieldNumber = 101;
|
| 6127 | private int packedDoubleMemoizedSerializedSize;
|
| 6128 | private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>();
|
| 6129 | public scg::IList<double> PackedDoubleList {
|
| 6130 | get { return pbc::Lists.AsReadOnly(packedDouble_); }
|
| 6131 | }
|
| 6132 | public int PackedDoubleCount {
|
| 6133 | get { return packedDouble_.Count; }
|
| 6134 | }
|
| 6135 | public double GetPackedDouble(int index) {
|
| 6136 | return packedDouble_[index];
|
| 6137 | }
|
| 6138 |
|
| 6139 | public const int PackedBoolFieldNumber = 102;
|
| 6140 | private int packedBoolMemoizedSerializedSize;
|
| 6141 | private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>();
|
| 6142 | public scg::IList<bool> PackedBoolList {
|
| 6143 | get { return pbc::Lists.AsReadOnly(packedBool_); }
|
| 6144 | }
|
| 6145 | public int PackedBoolCount {
|
| 6146 | get { return packedBool_.Count; }
|
| 6147 | }
|
| 6148 | public bool GetPackedBool(int index) {
|
| 6149 | return packedBool_[index];
|
| 6150 | }
|
| 6151 |
|
| 6152 | public const int PackedEnumFieldNumber = 103;
|
| 6153 | private int packedEnumMemoizedSerializedSize;
|
| 6154 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
|
| 6155 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList {
|
| 6156 | get { return pbc::Lists.AsReadOnly(packedEnum_); }
|
| 6157 | }
|
| 6158 | public int PackedEnumCount {
|
| 6159 | get { return packedEnum_.Count; }
|
| 6160 | }
|
| 6161 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
|
| 6162 | return packedEnum_[index];
|
| 6163 | }
|
| 6164 |
|
| 6165 | public override bool IsInitialized {
|
| 6166 | get {
|
| 6167 | return true;
|
| 6168 | }
|
| 6169 | }
|
| 6170 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 6171 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6172 | int size = SerializedSize;
|
| 6173 | if (packedInt32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6174 | output.WritePackedArray(pbd::FieldType.Int32, 90, "packed_int32", packedInt32MemoizedSerializedSize, packedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6175 | }
|
| 6176 | if (packedInt64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6177 | output.WritePackedArray(pbd::FieldType.Int64, 91, "packed_int64", packedInt64MemoizedSerializedSize, packedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6178 | }
|
| 6179 | if (packedUint32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6180 | output.WritePackedArray(pbd::FieldType.UInt32, 92, "packed_uint32", packedUint32MemoizedSerializedSize, packedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6181 | }
|
| 6182 | if (packedUint64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6183 | output.WritePackedArray(pbd::FieldType.UInt64, 93, "packed_uint64", packedUint64MemoizedSerializedSize, packedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6184 | }
|
| 6185 | if (packedSint32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6186 | output.WritePackedArray(pbd::FieldType.SInt32, 94, "packed_sint32", packedSint32MemoizedSerializedSize, packedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6187 | }
|
| 6188 | if (packedSint64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6189 | output.WritePackedArray(pbd::FieldType.SInt64, 95, "packed_sint64", packedSint64MemoizedSerializedSize, packedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6190 | }
|
| 6191 | if (packedFixed32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6192 | output.WritePackedArray(pbd::FieldType.Fixed32, 96, "packed_fixed32", packedFixed32MemoizedSerializedSize, packedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6193 | }
|
| 6194 | if (packedFixed64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6195 | output.WritePackedArray(pbd::FieldType.Fixed64, 97, "packed_fixed64", packedFixed64MemoizedSerializedSize, packedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6196 | }
|
| 6197 | if (packedSfixed32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6198 | output.WritePackedArray(pbd::FieldType.SFixed32, 98, "packed_sfixed32", packedSfixed32MemoizedSerializedSize, packedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6199 | }
|
| 6200 | if (packedSfixed64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6201 | output.WritePackedArray(pbd::FieldType.SFixed64, 99, "packed_sfixed64", packedSfixed64MemoizedSerializedSize, packedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6202 | }
|
| 6203 | if (packedFloat_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6204 | output.WritePackedArray(pbd::FieldType.Float, 100, "packed_float", packedFloatMemoizedSerializedSize, packedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6205 | }
|
| 6206 | if (packedDouble_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6207 | output.WritePackedArray(pbd::FieldType.Double, 101, "packed_double", packedDoubleMemoizedSerializedSize, packedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6208 | }
|
| 6209 | if (packedBool_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6210 | output.WritePackedArray(pbd::FieldType.Bool, 102, "packed_bool", packedBoolMemoizedSerializedSize, packedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6211 | }
|
| 6212 | if (packedEnum_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6213 | output.WritePackedArray(pbd::FieldType.Enum, 103, "packed_enum", packedEnumMemoizedSerializedSize, packedEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6214 | }
|
| 6215 | }
|
| 6216 |
|
| 6217 | private int memoizedSerializedSize = -1;
|
| 6218 | public override int SerializedSize {
|
| 6219 | get {
|
| 6220 | int size = memoizedSerializedSize;
|
| 6221 | if (size != -1) return size;
|
| 6222 |
|
| 6223 | size = 0;
|
| 6224 | {
|
| 6225 | int dataSize = 0;
|
| 6226 | foreach (int element in PackedInt32List) {
|
| 6227 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 6228 | }
|
| 6229 | size += dataSize;
|
| 6230 | if (packedInt32_.Count != 0) {
|
| 6231 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6232 | }
|
| 6233 | packedInt32MemoizedSerializedSize = dataSize;
|
| 6234 | }
|
| 6235 | {
|
| 6236 | int dataSize = 0;
|
| 6237 | foreach (long element in PackedInt64List) {
|
| 6238 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
|
| 6239 | }
|
| 6240 | size += dataSize;
|
| 6241 | if (packedInt64_.Count != 0) {
|
| 6242 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6243 | }
|
| 6244 | packedInt64MemoizedSerializedSize = dataSize;
|
| 6245 | }
|
| 6246 | {
|
| 6247 | int dataSize = 0;
|
| 6248 | foreach (uint element in PackedUint32List) {
|
| 6249 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
|
| 6250 | }
|
| 6251 | size += dataSize;
|
| 6252 | if (packedUint32_.Count != 0) {
|
| 6253 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6254 | }
|
| 6255 | packedUint32MemoizedSerializedSize = dataSize;
|
| 6256 | }
|
| 6257 | {
|
| 6258 | int dataSize = 0;
|
| 6259 | foreach (ulong element in PackedUint64List) {
|
| 6260 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
|
| 6261 | }
|
| 6262 | size += dataSize;
|
| 6263 | if (packedUint64_.Count != 0) {
|
| 6264 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6265 | }
|
| 6266 | packedUint64MemoizedSerializedSize = dataSize;
|
| 6267 | }
|
| 6268 | {
|
| 6269 | int dataSize = 0;
|
| 6270 | foreach (int element in PackedSint32List) {
|
| 6271 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
|
| 6272 | }
|
| 6273 | size += dataSize;
|
| 6274 | if (packedSint32_.Count != 0) {
|
| 6275 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6276 | }
|
| 6277 | packedSint32MemoizedSerializedSize = dataSize;
|
| 6278 | }
|
| 6279 | {
|
| 6280 | int dataSize = 0;
|
| 6281 | foreach (long element in PackedSint64List) {
|
| 6282 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
|
| 6283 | }
|
| 6284 | size += dataSize;
|
| 6285 | if (packedSint64_.Count != 0) {
|
| 6286 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6287 | }
|
| 6288 | packedSint64MemoizedSerializedSize = dataSize;
|
| 6289 | }
|
| 6290 | {
|
| 6291 | int dataSize = 0;
|
| 6292 | dataSize = 4 * packedFixed32_.Count;
|
| 6293 | size += dataSize;
|
| 6294 | if (packedFixed32_.Count != 0) {
|
| 6295 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6296 | }
|
| 6297 | packedFixed32MemoizedSerializedSize = dataSize;
|
| 6298 | }
|
| 6299 | {
|
| 6300 | int dataSize = 0;
|
| 6301 | dataSize = 8 * packedFixed64_.Count;
|
| 6302 | size += dataSize;
|
| 6303 | if (packedFixed64_.Count != 0) {
|
| 6304 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6305 | }
|
| 6306 | packedFixed64MemoizedSerializedSize = dataSize;
|
| 6307 | }
|
| 6308 | {
|
| 6309 | int dataSize = 0;
|
| 6310 | dataSize = 4 * packedSfixed32_.Count;
|
| 6311 | size += dataSize;
|
| 6312 | if (packedSfixed32_.Count != 0) {
|
| 6313 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6314 | }
|
| 6315 | packedSfixed32MemoizedSerializedSize = dataSize;
|
| 6316 | }
|
| 6317 | {
|
| 6318 | int dataSize = 0;
|
| 6319 | dataSize = 8 * packedSfixed64_.Count;
|
| 6320 | size += dataSize;
|
| 6321 | if (packedSfixed64_.Count != 0) {
|
| 6322 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6323 | }
|
| 6324 | packedSfixed64MemoizedSerializedSize = dataSize;
|
| 6325 | }
|
| 6326 | {
|
| 6327 | int dataSize = 0;
|
| 6328 | dataSize = 4 * packedFloat_.Count;
|
| 6329 | size += dataSize;
|
| 6330 | if (packedFloat_.Count != 0) {
|
| 6331 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6332 | }
|
| 6333 | packedFloatMemoizedSerializedSize = dataSize;
|
| 6334 | }
|
| 6335 | {
|
| 6336 | int dataSize = 0;
|
| 6337 | dataSize = 8 * packedDouble_.Count;
|
| 6338 | size += dataSize;
|
| 6339 | if (packedDouble_.Count != 0) {
|
| 6340 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6341 | }
|
| 6342 | packedDoubleMemoizedSerializedSize = dataSize;
|
| 6343 | }
|
| 6344 | {
|
| 6345 | int dataSize = 0;
|
| 6346 | dataSize = 1 * packedBool_.Count;
|
| 6347 | size += dataSize;
|
| 6348 | if (packedBool_.Count != 0) {
|
| 6349 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6350 | }
|
| 6351 | packedBoolMemoizedSerializedSize = dataSize;
|
| 6352 | }
|
| 6353 | {
|
| 6354 | int dataSize = 0;
|
| 6355 | if (packedEnum_.Count > 0) {
|
| 6356 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in packedEnum_) {
|
| 6357 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 6358 | }
|
| 6359 | size += dataSize;
|
| 6360 | size += 2;
|
| 6361 | size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize);
|
| 6362 | }
|
| 6363 | packedEnumMemoizedSerializedSize = dataSize;
|
| 6364 | }
|
| 6365 | memoizedSerializedSize = size;
|
| 6366 | return size;
|
| 6367 | }
|
| 6368 | }
|
| 6369 |
|
| 6370 | #region Lite runtime methods
|
| 6371 | public override int GetHashCode() {
|
| 6372 | int hash = GetType().GetHashCode();
|
| 6373 | foreach(int i in packedInt32_)
|
| 6374 | hash ^= i.GetHashCode();
|
| 6375 | foreach(long i in packedInt64_)
|
| 6376 | hash ^= i.GetHashCode();
|
| 6377 | foreach(uint i in packedUint32_)
|
| 6378 | hash ^= i.GetHashCode();
|
| 6379 | foreach(ulong i in packedUint64_)
|
| 6380 | hash ^= i.GetHashCode();
|
| 6381 | foreach(int i in packedSint32_)
|
| 6382 | hash ^= i.GetHashCode();
|
| 6383 | foreach(long i in packedSint64_)
|
| 6384 | hash ^= i.GetHashCode();
|
| 6385 | foreach(uint i in packedFixed32_)
|
| 6386 | hash ^= i.GetHashCode();
|
| 6387 | foreach(ulong i in packedFixed64_)
|
| 6388 | hash ^= i.GetHashCode();
|
| 6389 | foreach(int i in packedSfixed32_)
|
| 6390 | hash ^= i.GetHashCode();
|
| 6391 | foreach(long i in packedSfixed64_)
|
| 6392 | hash ^= i.GetHashCode();
|
| 6393 | foreach(float i in packedFloat_)
|
| 6394 | hash ^= i.GetHashCode();
|
| 6395 | foreach(double i in packedDouble_)
|
| 6396 | hash ^= i.GetHashCode();
|
| 6397 | foreach(bool i in packedBool_)
|
| 6398 | hash ^= i.GetHashCode();
|
| 6399 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in packedEnum_)
|
| 6400 | hash ^= i.GetHashCode();
|
| 6401 | return hash;
|
| 6402 | }
|
| 6403 |
|
| 6404 | public override bool Equals(object obj) {
|
| 6405 | TestPackedTypesLite other = obj as TestPackedTypesLite;
|
| 6406 | if (other == null) return false;
|
| 6407 | if(packedInt32_.Count != other.packedInt32_.Count) return false;
|
| 6408 | for(int ix=0; ix < packedInt32_.Count; ix++)
|
| 6409 | if(!packedInt32_[ix].Equals(other.packedInt32_[ix])) return false;
|
| 6410 | if(packedInt64_.Count != other.packedInt64_.Count) return false;
|
| 6411 | for(int ix=0; ix < packedInt64_.Count; ix++)
|
| 6412 | if(!packedInt64_[ix].Equals(other.packedInt64_[ix])) return false;
|
| 6413 | if(packedUint32_.Count != other.packedUint32_.Count) return false;
|
| 6414 | for(int ix=0; ix < packedUint32_.Count; ix++)
|
| 6415 | if(!packedUint32_[ix].Equals(other.packedUint32_[ix])) return false;
|
| 6416 | if(packedUint64_.Count != other.packedUint64_.Count) return false;
|
| 6417 | for(int ix=0; ix < packedUint64_.Count; ix++)
|
| 6418 | if(!packedUint64_[ix].Equals(other.packedUint64_[ix])) return false;
|
| 6419 | if(packedSint32_.Count != other.packedSint32_.Count) return false;
|
| 6420 | for(int ix=0; ix < packedSint32_.Count; ix++)
|
| 6421 | if(!packedSint32_[ix].Equals(other.packedSint32_[ix])) return false;
|
| 6422 | if(packedSint64_.Count != other.packedSint64_.Count) return false;
|
| 6423 | for(int ix=0; ix < packedSint64_.Count; ix++)
|
| 6424 | if(!packedSint64_[ix].Equals(other.packedSint64_[ix])) return false;
|
| 6425 | if(packedFixed32_.Count != other.packedFixed32_.Count) return false;
|
| 6426 | for(int ix=0; ix < packedFixed32_.Count; ix++)
|
| 6427 | if(!packedFixed32_[ix].Equals(other.packedFixed32_[ix])) return false;
|
| 6428 | if(packedFixed64_.Count != other.packedFixed64_.Count) return false;
|
| 6429 | for(int ix=0; ix < packedFixed64_.Count; ix++)
|
| 6430 | if(!packedFixed64_[ix].Equals(other.packedFixed64_[ix])) return false;
|
| 6431 | if(packedSfixed32_.Count != other.packedSfixed32_.Count) return false;
|
| 6432 | for(int ix=0; ix < packedSfixed32_.Count; ix++)
|
| 6433 | if(!packedSfixed32_[ix].Equals(other.packedSfixed32_[ix])) return false;
|
| 6434 | if(packedSfixed64_.Count != other.packedSfixed64_.Count) return false;
|
| 6435 | for(int ix=0; ix < packedSfixed64_.Count; ix++)
|
| 6436 | if(!packedSfixed64_[ix].Equals(other.packedSfixed64_[ix])) return false;
|
| 6437 | if(packedFloat_.Count != other.packedFloat_.Count) return false;
|
| 6438 | for(int ix=0; ix < packedFloat_.Count; ix++)
|
| 6439 | if(!packedFloat_[ix].Equals(other.packedFloat_[ix])) return false;
|
| 6440 | if(packedDouble_.Count != other.packedDouble_.Count) return false;
|
| 6441 | for(int ix=0; ix < packedDouble_.Count; ix++)
|
| 6442 | if(!packedDouble_[ix].Equals(other.packedDouble_[ix])) return false;
|
| 6443 | if(packedBool_.Count != other.packedBool_.Count) return false;
|
| 6444 | for(int ix=0; ix < packedBool_.Count; ix++)
|
| 6445 | if(!packedBool_[ix].Equals(other.packedBool_[ix])) return false;
|
| 6446 | if(packedEnum_.Count != other.packedEnum_.Count) return false;
|
| 6447 | for(int ix=0; ix < packedEnum_.Count; ix++)
|
| 6448 | if(!packedEnum_[ix].Equals(other.packedEnum_[ix])) return false;
|
| 6449 | return true;
|
| 6450 | }
|
| 6451 |
|
| 6452 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 6453 | PrintField("packed_int32", packedInt32_, writer);
|
| 6454 | PrintField("packed_int64", packedInt64_, writer);
|
| 6455 | PrintField("packed_uint32", packedUint32_, writer);
|
| 6456 | PrintField("packed_uint64", packedUint64_, writer);
|
| 6457 | PrintField("packed_sint32", packedSint32_, writer);
|
| 6458 | PrintField("packed_sint64", packedSint64_, writer);
|
| 6459 | PrintField("packed_fixed32", packedFixed32_, writer);
|
| 6460 | PrintField("packed_fixed64", packedFixed64_, writer);
|
| 6461 | PrintField("packed_sfixed32", packedSfixed32_, writer);
|
| 6462 | PrintField("packed_sfixed64", packedSfixed64_, writer);
|
| 6463 | PrintField("packed_float", packedFloat_, writer);
|
| 6464 | PrintField("packed_double", packedDouble_, writer);
|
| 6465 | PrintField("packed_bool", packedBool_, writer);
|
| 6466 | PrintField("packed_enum", packedEnum_, writer);
|
| 6467 | }
|
| 6468 | #endregion
|
| 6469 |
|
| 6470 | public static TestPackedTypesLite ParseFrom(pb::ByteString data) {
|
| 6471 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 6472 | }
|
| 6473 | public static TestPackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 6474 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 6475 | }
|
| 6476 | public static TestPackedTypesLite ParseFrom(byte[] data) {
|
| 6477 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 6478 | }
|
| 6479 | public static TestPackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 6480 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 6481 | }
|
| 6482 | public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input) {
|
| 6483 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 6484 | }
|
| 6485 | public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 6486 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 6487 | }
|
| 6488 | public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 6489 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 6490 | }
|
| 6491 | public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 6492 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 6493 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6494 | public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6495 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 6496 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6497 | public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6498 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 6499 | }
|
| 6500 | public static Builder CreateBuilder() { return new Builder(); }
|
| 6501 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 6502 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 6503 | public static Builder CreateBuilder(TestPackedTypesLite prototype) {
|
| 6504 | return (Builder) new Builder().MergeFrom(prototype);
|
| 6505 | }
|
| 6506 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 6507 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 6508 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 6509 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6510 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestPackedTypesLite, Builder> {
|
| 6511 | protected override Builder ThisBuilder {
|
| 6512 | get { return this; }
|
| 6513 | }
|
| 6514 | public Builder() {}
|
| 6515 |
|
| 6516 | TestPackedTypesLite result = new TestPackedTypesLite();
|
| 6517 |
|
| 6518 | protected override TestPackedTypesLite MessageBeingBuilt {
|
| 6519 | get { return result; }
|
| 6520 | }
|
| 6521 |
|
| 6522 | public override Builder Clear() {
|
| 6523 | result = new TestPackedTypesLite();
|
| 6524 | return this;
|
| 6525 | }
|
| 6526 |
|
| 6527 | public override Builder Clone() {
|
| 6528 | return new Builder().MergeFrom(result);
|
| 6529 | }
|
| 6530 |
|
| 6531 | public override TestPackedTypesLite DefaultInstanceForType {
|
| 6532 | get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance; }
|
| 6533 | }
|
| 6534 |
|
| 6535 | public override TestPackedTypesLite BuildPartial() {
|
| 6536 | if (result == null) {
|
| 6537 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 6538 | }
|
| 6539 | result.packedInt32_.MakeReadOnly();
|
| 6540 | result.packedInt64_.MakeReadOnly();
|
| 6541 | result.packedUint32_.MakeReadOnly();
|
| 6542 | result.packedUint64_.MakeReadOnly();
|
| 6543 | result.packedSint32_.MakeReadOnly();
|
| 6544 | result.packedSint64_.MakeReadOnly();
|
| 6545 | result.packedFixed32_.MakeReadOnly();
|
| 6546 | result.packedFixed64_.MakeReadOnly();
|
| 6547 | result.packedSfixed32_.MakeReadOnly();
|
| 6548 | result.packedSfixed64_.MakeReadOnly();
|
| 6549 | result.packedFloat_.MakeReadOnly();
|
| 6550 | result.packedDouble_.MakeReadOnly();
|
| 6551 | result.packedBool_.MakeReadOnly();
|
| 6552 | result.packedEnum_.MakeReadOnly();
|
| 6553 | TestPackedTypesLite returnMe = result;
|
| 6554 | result = null;
|
| 6555 | return returnMe;
|
| 6556 | }
|
| 6557 |
|
| 6558 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 6559 | if (other is TestPackedTypesLite) {
|
| 6560 | return MergeFrom((TestPackedTypesLite) other);
|
| 6561 | } else {
|
| 6562 | base.MergeFrom(other);
|
| 6563 | return this;
|
| 6564 | }
|
| 6565 | }
|
| 6566 |
|
| 6567 | public override Builder MergeFrom(TestPackedTypesLite other) {
|
| 6568 | if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance) return this;
|
| 6569 | if (other.packedInt32_.Count != 0) {
|
| 6570 | base.AddRange(other.packedInt32_, result.packedInt32_);
|
| 6571 | }
|
| 6572 | if (other.packedInt64_.Count != 0) {
|
| 6573 | base.AddRange(other.packedInt64_, result.packedInt64_);
|
| 6574 | }
|
| 6575 | if (other.packedUint32_.Count != 0) {
|
| 6576 | base.AddRange(other.packedUint32_, result.packedUint32_);
|
| 6577 | }
|
| 6578 | if (other.packedUint64_.Count != 0) {
|
| 6579 | base.AddRange(other.packedUint64_, result.packedUint64_);
|
| 6580 | }
|
| 6581 | if (other.packedSint32_.Count != 0) {
|
| 6582 | base.AddRange(other.packedSint32_, result.packedSint32_);
|
| 6583 | }
|
| 6584 | if (other.packedSint64_.Count != 0) {
|
| 6585 | base.AddRange(other.packedSint64_, result.packedSint64_);
|
| 6586 | }
|
| 6587 | if (other.packedFixed32_.Count != 0) {
|
| 6588 | base.AddRange(other.packedFixed32_, result.packedFixed32_);
|
| 6589 | }
|
| 6590 | if (other.packedFixed64_.Count != 0) {
|
| 6591 | base.AddRange(other.packedFixed64_, result.packedFixed64_);
|
| 6592 | }
|
| 6593 | if (other.packedSfixed32_.Count != 0) {
|
| 6594 | base.AddRange(other.packedSfixed32_, result.packedSfixed32_);
|
| 6595 | }
|
| 6596 | if (other.packedSfixed64_.Count != 0) {
|
| 6597 | base.AddRange(other.packedSfixed64_, result.packedSfixed64_);
|
| 6598 | }
|
| 6599 | if (other.packedFloat_.Count != 0) {
|
| 6600 | base.AddRange(other.packedFloat_, result.packedFloat_);
|
| 6601 | }
|
| 6602 | if (other.packedDouble_.Count != 0) {
|
| 6603 | base.AddRange(other.packedDouble_, result.packedDouble_);
|
| 6604 | }
|
| 6605 | if (other.packedBool_.Count != 0) {
|
| 6606 | base.AddRange(other.packedBool_, result.packedBool_);
|
| 6607 | }
|
| 6608 | if (other.packedEnum_.Count != 0) {
|
| 6609 | base.AddRange(other.packedEnum_, result.packedEnum_);
|
| 6610 | }
|
| 6611 | return this;
|
| 6612 | }
|
| 6613 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6614 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6615 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 6616 | }
|
| 6617 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6618 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 6619 | uint tag;
|
| 6620 | string field_name;
|
| 6621 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6622 | switch (tag) {
|
| 6623 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 6624 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6625 | }
|
| 6626 | default: {
|
| 6627 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 6628 | return this;
|
| 6629 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6630 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6631 | break;
|
| 6632 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6633 | case 722:
|
| 6634 | case 720: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6635 | input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.packedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6636 | break;
|
| 6637 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6638 | case 730:
|
| 6639 | case 728: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6640 | input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.packedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6641 | break;
|
| 6642 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6643 | case 738:
|
| 6644 | case 736: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6645 | input.ReadPrimitiveArray(pbd::FieldType.UInt32, tag, field_name, result.packedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6646 | break;
|
| 6647 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6648 | case 746:
|
| 6649 | case 744: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6650 | input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.packedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6651 | break;
|
| 6652 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6653 | case 754:
|
| 6654 | case 752: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6655 | input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.packedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6656 | break;
|
| 6657 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6658 | case 762:
|
| 6659 | case 760: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6660 | input.ReadPrimitiveArray(pbd::FieldType.SInt64, tag, field_name, result.packedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6661 | break;
|
| 6662 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6663 | case 770:
|
| 6664 | case 773: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6665 | input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.packedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6666 | break;
|
| 6667 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6668 | case 778:
|
| 6669 | case 777: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6670 | input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.packedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6671 | break;
|
| 6672 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6673 | case 786:
|
| 6674 | case 789: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6675 | input.ReadPrimitiveArray(pbd::FieldType.SFixed32, tag, field_name, result.packedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6676 | break;
|
| 6677 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6678 | case 794:
|
| 6679 | case 793: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6680 | input.ReadPrimitiveArray(pbd::FieldType.SFixed64, tag, field_name, result.packedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6681 | break;
|
| 6682 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6683 | case 802:
|
| 6684 | case 805: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6685 | input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.packedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6686 | break;
|
| 6687 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6688 | case 810:
|
| 6689 | case 809: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6690 | input.ReadPrimitiveArray(pbd::FieldType.Double, tag, field_name, result.packedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6691 | break;
|
| 6692 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6693 | case 818:
|
| 6694 | case 816: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6695 | input.ReadPrimitiveArray(pbd::FieldType.Bool, tag, field_name, result.packedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6696 | break;
|
| 6697 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6698 | case 826:
|
| 6699 | case 824: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6700 | scg::ICollection<object> unknownItems;
|
| 6701 | 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] | 6702 | break;
|
| 6703 | }
|
| 6704 | }
|
| 6705 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 6706 |
|
| 6707 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6708 | }
|
| 6709 |
|
| 6710 |
|
| 6711 | public pbc::IPopsicleList<int> PackedInt32List {
|
| 6712 | get { return result.packedInt32_; }
|
| 6713 | }
|
| 6714 | public int PackedInt32Count {
|
| 6715 | get { return result.PackedInt32Count; }
|
| 6716 | }
|
| 6717 | public int GetPackedInt32(int index) {
|
| 6718 | return result.GetPackedInt32(index);
|
| 6719 | }
|
| 6720 | public Builder SetPackedInt32(int index, int value) {
|
| 6721 | result.packedInt32_[index] = value;
|
| 6722 | return this;
|
| 6723 | }
|
| 6724 | public Builder AddPackedInt32(int value) {
|
| 6725 | result.packedInt32_.Add(value);
|
| 6726 | return this;
|
| 6727 | }
|
| 6728 | public Builder AddRangePackedInt32(scg::IEnumerable<int> values) {
|
| 6729 | base.AddRange(values, result.packedInt32_);
|
| 6730 | return this;
|
| 6731 | }
|
| 6732 | public Builder ClearPackedInt32() {
|
| 6733 | result.packedInt32_.Clear();
|
| 6734 | return this;
|
| 6735 | }
|
| 6736 |
|
| 6737 | public pbc::IPopsicleList<long> PackedInt64List {
|
| 6738 | get { return result.packedInt64_; }
|
| 6739 | }
|
| 6740 | public int PackedInt64Count {
|
| 6741 | get { return result.PackedInt64Count; }
|
| 6742 | }
|
| 6743 | public long GetPackedInt64(int index) {
|
| 6744 | return result.GetPackedInt64(index);
|
| 6745 | }
|
| 6746 | public Builder SetPackedInt64(int index, long value) {
|
| 6747 | result.packedInt64_[index] = value;
|
| 6748 | return this;
|
| 6749 | }
|
| 6750 | public Builder AddPackedInt64(long value) {
|
| 6751 | result.packedInt64_.Add(value);
|
| 6752 | return this;
|
| 6753 | }
|
| 6754 | public Builder AddRangePackedInt64(scg::IEnumerable<long> values) {
|
| 6755 | base.AddRange(values, result.packedInt64_);
|
| 6756 | return this;
|
| 6757 | }
|
| 6758 | public Builder ClearPackedInt64() {
|
| 6759 | result.packedInt64_.Clear();
|
| 6760 | return this;
|
| 6761 | }
|
| 6762 |
|
| 6763 | [global::System.CLSCompliant(false)]
|
| 6764 | public pbc::IPopsicleList<uint> PackedUint32List {
|
| 6765 | get { return result.packedUint32_; }
|
| 6766 | }
|
| 6767 | public int PackedUint32Count {
|
| 6768 | get { return result.PackedUint32Count; }
|
| 6769 | }
|
| 6770 | [global::System.CLSCompliant(false)]
|
| 6771 | public uint GetPackedUint32(int index) {
|
| 6772 | return result.GetPackedUint32(index);
|
| 6773 | }
|
| 6774 | [global::System.CLSCompliant(false)]
|
| 6775 | public Builder SetPackedUint32(int index, uint value) {
|
| 6776 | result.packedUint32_[index] = value;
|
| 6777 | return this;
|
| 6778 | }
|
| 6779 | [global::System.CLSCompliant(false)]
|
| 6780 | public Builder AddPackedUint32(uint value) {
|
| 6781 | result.packedUint32_.Add(value);
|
| 6782 | return this;
|
| 6783 | }
|
| 6784 | [global::System.CLSCompliant(false)]
|
| 6785 | public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) {
|
| 6786 | base.AddRange(values, result.packedUint32_);
|
| 6787 | return this;
|
| 6788 | }
|
| 6789 | public Builder ClearPackedUint32() {
|
| 6790 | result.packedUint32_.Clear();
|
| 6791 | return this;
|
| 6792 | }
|
| 6793 |
|
| 6794 | [global::System.CLSCompliant(false)]
|
| 6795 | public pbc::IPopsicleList<ulong> PackedUint64List {
|
| 6796 | get { return result.packedUint64_; }
|
| 6797 | }
|
| 6798 | public int PackedUint64Count {
|
| 6799 | get { return result.PackedUint64Count; }
|
| 6800 | }
|
| 6801 | [global::System.CLSCompliant(false)]
|
| 6802 | public ulong GetPackedUint64(int index) {
|
| 6803 | return result.GetPackedUint64(index);
|
| 6804 | }
|
| 6805 | [global::System.CLSCompliant(false)]
|
| 6806 | public Builder SetPackedUint64(int index, ulong value) {
|
| 6807 | result.packedUint64_[index] = value;
|
| 6808 | return this;
|
| 6809 | }
|
| 6810 | [global::System.CLSCompliant(false)]
|
| 6811 | public Builder AddPackedUint64(ulong value) {
|
| 6812 | result.packedUint64_.Add(value);
|
| 6813 | return this;
|
| 6814 | }
|
| 6815 | [global::System.CLSCompliant(false)]
|
| 6816 | public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) {
|
| 6817 | base.AddRange(values, result.packedUint64_);
|
| 6818 | return this;
|
| 6819 | }
|
| 6820 | public Builder ClearPackedUint64() {
|
| 6821 | result.packedUint64_.Clear();
|
| 6822 | return this;
|
| 6823 | }
|
| 6824 |
|
| 6825 | public pbc::IPopsicleList<int> PackedSint32List {
|
| 6826 | get { return result.packedSint32_; }
|
| 6827 | }
|
| 6828 | public int PackedSint32Count {
|
| 6829 | get { return result.PackedSint32Count; }
|
| 6830 | }
|
| 6831 | public int GetPackedSint32(int index) {
|
| 6832 | return result.GetPackedSint32(index);
|
| 6833 | }
|
| 6834 | public Builder SetPackedSint32(int index, int value) {
|
| 6835 | result.packedSint32_[index] = value;
|
| 6836 | return this;
|
| 6837 | }
|
| 6838 | public Builder AddPackedSint32(int value) {
|
| 6839 | result.packedSint32_.Add(value);
|
| 6840 | return this;
|
| 6841 | }
|
| 6842 | public Builder AddRangePackedSint32(scg::IEnumerable<int> values) {
|
| 6843 | base.AddRange(values, result.packedSint32_);
|
| 6844 | return this;
|
| 6845 | }
|
| 6846 | public Builder ClearPackedSint32() {
|
| 6847 | result.packedSint32_.Clear();
|
| 6848 | return this;
|
| 6849 | }
|
| 6850 |
|
| 6851 | public pbc::IPopsicleList<long> PackedSint64List {
|
| 6852 | get { return result.packedSint64_; }
|
| 6853 | }
|
| 6854 | public int PackedSint64Count {
|
| 6855 | get { return result.PackedSint64Count; }
|
| 6856 | }
|
| 6857 | public long GetPackedSint64(int index) {
|
| 6858 | return result.GetPackedSint64(index);
|
| 6859 | }
|
| 6860 | public Builder SetPackedSint64(int index, long value) {
|
| 6861 | result.packedSint64_[index] = value;
|
| 6862 | return this;
|
| 6863 | }
|
| 6864 | public Builder AddPackedSint64(long value) {
|
| 6865 | result.packedSint64_.Add(value);
|
| 6866 | return this;
|
| 6867 | }
|
| 6868 | public Builder AddRangePackedSint64(scg::IEnumerable<long> values) {
|
| 6869 | base.AddRange(values, result.packedSint64_);
|
| 6870 | return this;
|
| 6871 | }
|
| 6872 | public Builder ClearPackedSint64() {
|
| 6873 | result.packedSint64_.Clear();
|
| 6874 | return this;
|
| 6875 | }
|
| 6876 |
|
| 6877 | [global::System.CLSCompliant(false)]
|
| 6878 | public pbc::IPopsicleList<uint> PackedFixed32List {
|
| 6879 | get { return result.packedFixed32_; }
|
| 6880 | }
|
| 6881 | public int PackedFixed32Count {
|
| 6882 | get { return result.PackedFixed32Count; }
|
| 6883 | }
|
| 6884 | [global::System.CLSCompliant(false)]
|
| 6885 | public uint GetPackedFixed32(int index) {
|
| 6886 | return result.GetPackedFixed32(index);
|
| 6887 | }
|
| 6888 | [global::System.CLSCompliant(false)]
|
| 6889 | public Builder SetPackedFixed32(int index, uint value) {
|
| 6890 | result.packedFixed32_[index] = value;
|
| 6891 | return this;
|
| 6892 | }
|
| 6893 | [global::System.CLSCompliant(false)]
|
| 6894 | public Builder AddPackedFixed32(uint value) {
|
| 6895 | result.packedFixed32_.Add(value);
|
| 6896 | return this;
|
| 6897 | }
|
| 6898 | [global::System.CLSCompliant(false)]
|
| 6899 | public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) {
|
| 6900 | base.AddRange(values, result.packedFixed32_);
|
| 6901 | return this;
|
| 6902 | }
|
| 6903 | public Builder ClearPackedFixed32() {
|
| 6904 | result.packedFixed32_.Clear();
|
| 6905 | return this;
|
| 6906 | }
|
| 6907 |
|
| 6908 | [global::System.CLSCompliant(false)]
|
| 6909 | public pbc::IPopsicleList<ulong> PackedFixed64List {
|
| 6910 | get { return result.packedFixed64_; }
|
| 6911 | }
|
| 6912 | public int PackedFixed64Count {
|
| 6913 | get { return result.PackedFixed64Count; }
|
| 6914 | }
|
| 6915 | [global::System.CLSCompliant(false)]
|
| 6916 | public ulong GetPackedFixed64(int index) {
|
| 6917 | return result.GetPackedFixed64(index);
|
| 6918 | }
|
| 6919 | [global::System.CLSCompliant(false)]
|
| 6920 | public Builder SetPackedFixed64(int index, ulong value) {
|
| 6921 | result.packedFixed64_[index] = value;
|
| 6922 | return this;
|
| 6923 | }
|
| 6924 | [global::System.CLSCompliant(false)]
|
| 6925 | public Builder AddPackedFixed64(ulong value) {
|
| 6926 | result.packedFixed64_.Add(value);
|
| 6927 | return this;
|
| 6928 | }
|
| 6929 | [global::System.CLSCompliant(false)]
|
| 6930 | public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) {
|
| 6931 | base.AddRange(values, result.packedFixed64_);
|
| 6932 | return this;
|
| 6933 | }
|
| 6934 | public Builder ClearPackedFixed64() {
|
| 6935 | result.packedFixed64_.Clear();
|
| 6936 | return this;
|
| 6937 | }
|
| 6938 |
|
| 6939 | public pbc::IPopsicleList<int> PackedSfixed32List {
|
| 6940 | get { return result.packedSfixed32_; }
|
| 6941 | }
|
| 6942 | public int PackedSfixed32Count {
|
| 6943 | get { return result.PackedSfixed32Count; }
|
| 6944 | }
|
| 6945 | public int GetPackedSfixed32(int index) {
|
| 6946 | return result.GetPackedSfixed32(index);
|
| 6947 | }
|
| 6948 | public Builder SetPackedSfixed32(int index, int value) {
|
| 6949 | result.packedSfixed32_[index] = value;
|
| 6950 | return this;
|
| 6951 | }
|
| 6952 | public Builder AddPackedSfixed32(int value) {
|
| 6953 | result.packedSfixed32_.Add(value);
|
| 6954 | return this;
|
| 6955 | }
|
| 6956 | public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) {
|
| 6957 | base.AddRange(values, result.packedSfixed32_);
|
| 6958 | return this;
|
| 6959 | }
|
| 6960 | public Builder ClearPackedSfixed32() {
|
| 6961 | result.packedSfixed32_.Clear();
|
| 6962 | return this;
|
| 6963 | }
|
| 6964 |
|
| 6965 | public pbc::IPopsicleList<long> PackedSfixed64List {
|
| 6966 | get { return result.packedSfixed64_; }
|
| 6967 | }
|
| 6968 | public int PackedSfixed64Count {
|
| 6969 | get { return result.PackedSfixed64Count; }
|
| 6970 | }
|
| 6971 | public long GetPackedSfixed64(int index) {
|
| 6972 | return result.GetPackedSfixed64(index);
|
| 6973 | }
|
| 6974 | public Builder SetPackedSfixed64(int index, long value) {
|
| 6975 | result.packedSfixed64_[index] = value;
|
| 6976 | return this;
|
| 6977 | }
|
| 6978 | public Builder AddPackedSfixed64(long value) {
|
| 6979 | result.packedSfixed64_.Add(value);
|
| 6980 | return this;
|
| 6981 | }
|
| 6982 | public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) {
|
| 6983 | base.AddRange(values, result.packedSfixed64_);
|
| 6984 | return this;
|
| 6985 | }
|
| 6986 | public Builder ClearPackedSfixed64() {
|
| 6987 | result.packedSfixed64_.Clear();
|
| 6988 | return this;
|
| 6989 | }
|
| 6990 |
|
| 6991 | public pbc::IPopsicleList<float> PackedFloatList {
|
| 6992 | get { return result.packedFloat_; }
|
| 6993 | }
|
| 6994 | public int PackedFloatCount {
|
| 6995 | get { return result.PackedFloatCount; }
|
| 6996 | }
|
| 6997 | public float GetPackedFloat(int index) {
|
| 6998 | return result.GetPackedFloat(index);
|
| 6999 | }
|
| 7000 | public Builder SetPackedFloat(int index, float value) {
|
| 7001 | result.packedFloat_[index] = value;
|
| 7002 | return this;
|
| 7003 | }
|
| 7004 | public Builder AddPackedFloat(float value) {
|
| 7005 | result.packedFloat_.Add(value);
|
| 7006 | return this;
|
| 7007 | }
|
| 7008 | public Builder AddRangePackedFloat(scg::IEnumerable<float> values) {
|
| 7009 | base.AddRange(values, result.packedFloat_);
|
| 7010 | return this;
|
| 7011 | }
|
| 7012 | public Builder ClearPackedFloat() {
|
| 7013 | result.packedFloat_.Clear();
|
| 7014 | return this;
|
| 7015 | }
|
| 7016 |
|
| 7017 | public pbc::IPopsicleList<double> PackedDoubleList {
|
| 7018 | get { return result.packedDouble_; }
|
| 7019 | }
|
| 7020 | public int PackedDoubleCount {
|
| 7021 | get { return result.PackedDoubleCount; }
|
| 7022 | }
|
| 7023 | public double GetPackedDouble(int index) {
|
| 7024 | return result.GetPackedDouble(index);
|
| 7025 | }
|
| 7026 | public Builder SetPackedDouble(int index, double value) {
|
| 7027 | result.packedDouble_[index] = value;
|
| 7028 | return this;
|
| 7029 | }
|
| 7030 | public Builder AddPackedDouble(double value) {
|
| 7031 | result.packedDouble_.Add(value);
|
| 7032 | return this;
|
| 7033 | }
|
| 7034 | public Builder AddRangePackedDouble(scg::IEnumerable<double> values) {
|
| 7035 | base.AddRange(values, result.packedDouble_);
|
| 7036 | return this;
|
| 7037 | }
|
| 7038 | public Builder ClearPackedDouble() {
|
| 7039 | result.packedDouble_.Clear();
|
| 7040 | return this;
|
| 7041 | }
|
| 7042 |
|
| 7043 | public pbc::IPopsicleList<bool> PackedBoolList {
|
| 7044 | get { return result.packedBool_; }
|
| 7045 | }
|
| 7046 | public int PackedBoolCount {
|
| 7047 | get { return result.PackedBoolCount; }
|
| 7048 | }
|
| 7049 | public bool GetPackedBool(int index) {
|
| 7050 | return result.GetPackedBool(index);
|
| 7051 | }
|
| 7052 | public Builder SetPackedBool(int index, bool value) {
|
| 7053 | result.packedBool_[index] = value;
|
| 7054 | return this;
|
| 7055 | }
|
| 7056 | public Builder AddPackedBool(bool value) {
|
| 7057 | result.packedBool_.Add(value);
|
| 7058 | return this;
|
| 7059 | }
|
| 7060 | public Builder AddRangePackedBool(scg::IEnumerable<bool> values) {
|
| 7061 | base.AddRange(values, result.packedBool_);
|
| 7062 | return this;
|
| 7063 | }
|
| 7064 | public Builder ClearPackedBool() {
|
| 7065 | result.packedBool_.Clear();
|
| 7066 | return this;
|
| 7067 | }
|
| 7068 |
|
| 7069 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList {
|
| 7070 | get { return result.packedEnum_; }
|
| 7071 | }
|
| 7072 | public int PackedEnumCount {
|
| 7073 | get { return result.PackedEnumCount; }
|
| 7074 | }
|
| 7075 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
|
| 7076 | return result.GetPackedEnum(index);
|
| 7077 | }
|
| 7078 | public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 7079 | result.packedEnum_[index] = value;
|
| 7080 | return this;
|
| 7081 | }
|
| 7082 | public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 7083 | result.packedEnum_.Add(value);
|
| 7084 | return this;
|
| 7085 | }
|
| 7086 | public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
|
| 7087 | base.AddRange(values, result.packedEnum_);
|
| 7088 | return this;
|
| 7089 | }
|
| 7090 | public Builder ClearPackedEnum() {
|
| 7091 | result.packedEnum_.Clear();
|
| 7092 | return this;
|
| 7093 | }
|
| 7094 | }
|
| 7095 | static TestPackedTypesLite() {
|
| 7096 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 7097 | }
|
| 7098 | }
|
| 7099 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7100 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7101 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7102 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7103 | public sealed partial class TestUnpackedTypesLite : pb::GeneratedMessageLite<TestUnpackedTypesLite, TestUnpackedTypesLite.Builder> {
|
| 7104 | private static readonly TestUnpackedTypesLite defaultInstance = new Builder().BuildPartial();
|
| 7105 | public static TestUnpackedTypesLite DefaultInstance {
|
| 7106 | get { return defaultInstance; }
|
| 7107 | }
|
| 7108 |
|
| 7109 | public override TestUnpackedTypesLite DefaultInstanceForType {
|
| 7110 | get { return defaultInstance; }
|
| 7111 | }
|
| 7112 |
|
| 7113 | protected override TestUnpackedTypesLite ThisMessage {
|
| 7114 | get { return this; }
|
| 7115 | }
|
| 7116 |
|
| 7117 | public const int UnpackedInt32FieldNumber = 90;
|
| 7118 | private pbc::PopsicleList<int> unpackedInt32_ = new pbc::PopsicleList<int>();
|
| 7119 | public scg::IList<int> UnpackedInt32List {
|
| 7120 | get { return pbc::Lists.AsReadOnly(unpackedInt32_); }
|
| 7121 | }
|
| 7122 | public int UnpackedInt32Count {
|
| 7123 | get { return unpackedInt32_.Count; }
|
| 7124 | }
|
| 7125 | public int GetUnpackedInt32(int index) {
|
| 7126 | return unpackedInt32_[index];
|
| 7127 | }
|
| 7128 |
|
| 7129 | public const int UnpackedInt64FieldNumber = 91;
|
| 7130 | private pbc::PopsicleList<long> unpackedInt64_ = new pbc::PopsicleList<long>();
|
| 7131 | public scg::IList<long> UnpackedInt64List {
|
| 7132 | get { return pbc::Lists.AsReadOnly(unpackedInt64_); }
|
| 7133 | }
|
| 7134 | public int UnpackedInt64Count {
|
| 7135 | get { return unpackedInt64_.Count; }
|
| 7136 | }
|
| 7137 | public long GetUnpackedInt64(int index) {
|
| 7138 | return unpackedInt64_[index];
|
| 7139 | }
|
| 7140 |
|
| 7141 | public const int UnpackedUint32FieldNumber = 92;
|
| 7142 | private pbc::PopsicleList<uint> unpackedUint32_ = new pbc::PopsicleList<uint>();
|
| 7143 | [global::System.CLSCompliant(false)]
|
| 7144 | public scg::IList<uint> UnpackedUint32List {
|
| 7145 | get { return pbc::Lists.AsReadOnly(unpackedUint32_); }
|
| 7146 | }
|
| 7147 | public int UnpackedUint32Count {
|
| 7148 | get { return unpackedUint32_.Count; }
|
| 7149 | }
|
| 7150 | [global::System.CLSCompliant(false)]
|
| 7151 | public uint GetUnpackedUint32(int index) {
|
| 7152 | return unpackedUint32_[index];
|
| 7153 | }
|
| 7154 |
|
| 7155 | public const int UnpackedUint64FieldNumber = 93;
|
| 7156 | private pbc::PopsicleList<ulong> unpackedUint64_ = new pbc::PopsicleList<ulong>();
|
| 7157 | [global::System.CLSCompliant(false)]
|
| 7158 | public scg::IList<ulong> UnpackedUint64List {
|
| 7159 | get { return pbc::Lists.AsReadOnly(unpackedUint64_); }
|
| 7160 | }
|
| 7161 | public int UnpackedUint64Count {
|
| 7162 | get { return unpackedUint64_.Count; }
|
| 7163 | }
|
| 7164 | [global::System.CLSCompliant(false)]
|
| 7165 | public ulong GetUnpackedUint64(int index) {
|
| 7166 | return unpackedUint64_[index];
|
| 7167 | }
|
| 7168 |
|
| 7169 | public const int UnpackedSint32FieldNumber = 94;
|
| 7170 | private pbc::PopsicleList<int> unpackedSint32_ = new pbc::PopsicleList<int>();
|
| 7171 | public scg::IList<int> UnpackedSint32List {
|
| 7172 | get { return pbc::Lists.AsReadOnly(unpackedSint32_); }
|
| 7173 | }
|
| 7174 | public int UnpackedSint32Count {
|
| 7175 | get { return unpackedSint32_.Count; }
|
| 7176 | }
|
| 7177 | public int GetUnpackedSint32(int index) {
|
| 7178 | return unpackedSint32_[index];
|
| 7179 | }
|
| 7180 |
|
| 7181 | public const int UnpackedSint64FieldNumber = 95;
|
| 7182 | private pbc::PopsicleList<long> unpackedSint64_ = new pbc::PopsicleList<long>();
|
| 7183 | public scg::IList<long> UnpackedSint64List {
|
| 7184 | get { return pbc::Lists.AsReadOnly(unpackedSint64_); }
|
| 7185 | }
|
| 7186 | public int UnpackedSint64Count {
|
| 7187 | get { return unpackedSint64_.Count; }
|
| 7188 | }
|
| 7189 | public long GetUnpackedSint64(int index) {
|
| 7190 | return unpackedSint64_[index];
|
| 7191 | }
|
| 7192 |
|
| 7193 | public const int UnpackedFixed32FieldNumber = 96;
|
| 7194 | private pbc::PopsicleList<uint> unpackedFixed32_ = new pbc::PopsicleList<uint>();
|
| 7195 | [global::System.CLSCompliant(false)]
|
| 7196 | public scg::IList<uint> UnpackedFixed32List {
|
| 7197 | get { return pbc::Lists.AsReadOnly(unpackedFixed32_); }
|
| 7198 | }
|
| 7199 | public int UnpackedFixed32Count {
|
| 7200 | get { return unpackedFixed32_.Count; }
|
| 7201 | }
|
| 7202 | [global::System.CLSCompliant(false)]
|
| 7203 | public uint GetUnpackedFixed32(int index) {
|
| 7204 | return unpackedFixed32_[index];
|
| 7205 | }
|
| 7206 |
|
| 7207 | public const int UnpackedFixed64FieldNumber = 97;
|
| 7208 | private pbc::PopsicleList<ulong> unpackedFixed64_ = new pbc::PopsicleList<ulong>();
|
| 7209 | [global::System.CLSCompliant(false)]
|
| 7210 | public scg::IList<ulong> UnpackedFixed64List {
|
| 7211 | get { return pbc::Lists.AsReadOnly(unpackedFixed64_); }
|
| 7212 | }
|
| 7213 | public int UnpackedFixed64Count {
|
| 7214 | get { return unpackedFixed64_.Count; }
|
| 7215 | }
|
| 7216 | [global::System.CLSCompliant(false)]
|
| 7217 | public ulong GetUnpackedFixed64(int index) {
|
| 7218 | return unpackedFixed64_[index];
|
| 7219 | }
|
| 7220 |
|
| 7221 | public const int UnpackedSfixed32FieldNumber = 98;
|
| 7222 | private pbc::PopsicleList<int> unpackedSfixed32_ = new pbc::PopsicleList<int>();
|
| 7223 | public scg::IList<int> UnpackedSfixed32List {
|
| 7224 | get { return pbc::Lists.AsReadOnly(unpackedSfixed32_); }
|
| 7225 | }
|
| 7226 | public int UnpackedSfixed32Count {
|
| 7227 | get { return unpackedSfixed32_.Count; }
|
| 7228 | }
|
| 7229 | public int GetUnpackedSfixed32(int index) {
|
| 7230 | return unpackedSfixed32_[index];
|
| 7231 | }
|
| 7232 |
|
| 7233 | public const int UnpackedSfixed64FieldNumber = 99;
|
| 7234 | private pbc::PopsicleList<long> unpackedSfixed64_ = new pbc::PopsicleList<long>();
|
| 7235 | public scg::IList<long> UnpackedSfixed64List {
|
| 7236 | get { return pbc::Lists.AsReadOnly(unpackedSfixed64_); }
|
| 7237 | }
|
| 7238 | public int UnpackedSfixed64Count {
|
| 7239 | get { return unpackedSfixed64_.Count; }
|
| 7240 | }
|
| 7241 | public long GetUnpackedSfixed64(int index) {
|
| 7242 | return unpackedSfixed64_[index];
|
| 7243 | }
|
| 7244 |
|
| 7245 | public const int UnpackedFloatFieldNumber = 100;
|
| 7246 | private pbc::PopsicleList<float> unpackedFloat_ = new pbc::PopsicleList<float>();
|
| 7247 | public scg::IList<float> UnpackedFloatList {
|
| 7248 | get { return pbc::Lists.AsReadOnly(unpackedFloat_); }
|
| 7249 | }
|
| 7250 | public int UnpackedFloatCount {
|
| 7251 | get { return unpackedFloat_.Count; }
|
| 7252 | }
|
| 7253 | public float GetUnpackedFloat(int index) {
|
| 7254 | return unpackedFloat_[index];
|
| 7255 | }
|
| 7256 |
|
| 7257 | public const int UnpackedDoubleFieldNumber = 101;
|
| 7258 | private pbc::PopsicleList<double> unpackedDouble_ = new pbc::PopsicleList<double>();
|
| 7259 | public scg::IList<double> UnpackedDoubleList {
|
| 7260 | get { return pbc::Lists.AsReadOnly(unpackedDouble_); }
|
| 7261 | }
|
| 7262 | public int UnpackedDoubleCount {
|
| 7263 | get { return unpackedDouble_.Count; }
|
| 7264 | }
|
| 7265 | public double GetUnpackedDouble(int index) {
|
| 7266 | return unpackedDouble_[index];
|
| 7267 | }
|
| 7268 |
|
| 7269 | public const int UnpackedBoolFieldNumber = 102;
|
| 7270 | private pbc::PopsicleList<bool> unpackedBool_ = new pbc::PopsicleList<bool>();
|
| 7271 | public scg::IList<bool> UnpackedBoolList {
|
| 7272 | get { return pbc::Lists.AsReadOnly(unpackedBool_); }
|
| 7273 | }
|
| 7274 | public int UnpackedBoolCount {
|
| 7275 | get { return unpackedBool_.Count; }
|
| 7276 | }
|
| 7277 | public bool GetUnpackedBool(int index) {
|
| 7278 | return unpackedBool_[index];
|
| 7279 | }
|
| 7280 |
|
| 7281 | public const int UnpackedEnumFieldNumber = 103;
|
| 7282 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> unpackedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
|
| 7283 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> UnpackedEnumList {
|
| 7284 | get { return pbc::Lists.AsReadOnly(unpackedEnum_); }
|
| 7285 | }
|
| 7286 | public int UnpackedEnumCount {
|
| 7287 | get { return unpackedEnum_.Count; }
|
| 7288 | }
|
| 7289 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetUnpackedEnum(int index) {
|
| 7290 | return unpackedEnum_[index];
|
| 7291 | }
|
| 7292 |
|
| 7293 | public override bool IsInitialized {
|
| 7294 | get {
|
| 7295 | return true;
|
| 7296 | }
|
| 7297 | }
|
| 7298 |
|
| 7299 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 7300 | int size = SerializedSize;
|
| 7301 | if (unpackedInt32_.Count > 0) {
|
| 7302 | output.WriteArray(pbd::FieldType.Int32, 90, "unpacked_int32", unpackedInt32_);
|
| 7303 | }
|
| 7304 | if (unpackedInt64_.Count > 0) {
|
| 7305 | output.WriteArray(pbd::FieldType.Int64, 91, "unpacked_int64", unpackedInt64_);
|
| 7306 | }
|
| 7307 | if (unpackedUint32_.Count > 0) {
|
| 7308 | output.WriteArray(pbd::FieldType.UInt32, 92, "unpacked_uint32", unpackedUint32_);
|
| 7309 | }
|
| 7310 | if (unpackedUint64_.Count > 0) {
|
| 7311 | output.WriteArray(pbd::FieldType.UInt64, 93, "unpacked_uint64", unpackedUint64_);
|
| 7312 | }
|
| 7313 | if (unpackedSint32_.Count > 0) {
|
| 7314 | output.WriteArray(pbd::FieldType.SInt32, 94, "unpacked_sint32", unpackedSint32_);
|
| 7315 | }
|
| 7316 | if (unpackedSint64_.Count > 0) {
|
| 7317 | output.WriteArray(pbd::FieldType.SInt64, 95, "unpacked_sint64", unpackedSint64_);
|
| 7318 | }
|
| 7319 | if (unpackedFixed32_.Count > 0) {
|
| 7320 | output.WriteArray(pbd::FieldType.Fixed32, 96, "unpacked_fixed32", unpackedFixed32_);
|
| 7321 | }
|
| 7322 | if (unpackedFixed64_.Count > 0) {
|
| 7323 | output.WriteArray(pbd::FieldType.Fixed64, 97, "unpacked_fixed64", unpackedFixed64_);
|
| 7324 | }
|
| 7325 | if (unpackedSfixed32_.Count > 0) {
|
| 7326 | output.WriteArray(pbd::FieldType.SFixed32, 98, "unpacked_sfixed32", unpackedSfixed32_);
|
| 7327 | }
|
| 7328 | if (unpackedSfixed64_.Count > 0) {
|
| 7329 | output.WriteArray(pbd::FieldType.SFixed64, 99, "unpacked_sfixed64", unpackedSfixed64_);
|
| 7330 | }
|
| 7331 | if (unpackedFloat_.Count > 0) {
|
| 7332 | output.WriteArray(pbd::FieldType.Float, 100, "unpacked_float", unpackedFloat_);
|
| 7333 | }
|
| 7334 | if (unpackedDouble_.Count > 0) {
|
| 7335 | output.WriteArray(pbd::FieldType.Double, 101, "unpacked_double", unpackedDouble_);
|
| 7336 | }
|
| 7337 | if (unpackedBool_.Count > 0) {
|
| 7338 | output.WriteArray(pbd::FieldType.Bool, 102, "unpacked_bool", unpackedBool_);
|
| 7339 | }
|
| 7340 | if (unpackedEnum_.Count > 0) {
|
| 7341 | output.WriteArray(pbd::FieldType.Enum, 103, "unpacked_enum", unpackedEnum_);
|
| 7342 | }
|
| 7343 | }
|
| 7344 |
|
| 7345 | private int memoizedSerializedSize = -1;
|
| 7346 | public override int SerializedSize {
|
| 7347 | get {
|
| 7348 | int size = memoizedSerializedSize;
|
| 7349 | if (size != -1) return size;
|
| 7350 |
|
| 7351 | size = 0;
|
| 7352 | {
|
| 7353 | int dataSize = 0;
|
| 7354 | foreach (int element in UnpackedInt32List) {
|
| 7355 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 7356 | }
|
| 7357 | size += dataSize;
|
| 7358 | size += 2 * unpackedInt32_.Count;
|
| 7359 | }
|
| 7360 | {
|
| 7361 | int dataSize = 0;
|
| 7362 | foreach (long element in UnpackedInt64List) {
|
| 7363 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
|
| 7364 | }
|
| 7365 | size += dataSize;
|
| 7366 | size += 2 * unpackedInt64_.Count;
|
| 7367 | }
|
| 7368 | {
|
| 7369 | int dataSize = 0;
|
| 7370 | foreach (uint element in UnpackedUint32List) {
|
| 7371 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
|
| 7372 | }
|
| 7373 | size += dataSize;
|
| 7374 | size += 2 * unpackedUint32_.Count;
|
| 7375 | }
|
| 7376 | {
|
| 7377 | int dataSize = 0;
|
| 7378 | foreach (ulong element in UnpackedUint64List) {
|
| 7379 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
|
| 7380 | }
|
| 7381 | size += dataSize;
|
| 7382 | size += 2 * unpackedUint64_.Count;
|
| 7383 | }
|
| 7384 | {
|
| 7385 | int dataSize = 0;
|
| 7386 | foreach (int element in UnpackedSint32List) {
|
| 7387 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
|
| 7388 | }
|
| 7389 | size += dataSize;
|
| 7390 | size += 2 * unpackedSint32_.Count;
|
| 7391 | }
|
| 7392 | {
|
| 7393 | int dataSize = 0;
|
| 7394 | foreach (long element in UnpackedSint64List) {
|
| 7395 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
|
| 7396 | }
|
| 7397 | size += dataSize;
|
| 7398 | size += 2 * unpackedSint64_.Count;
|
| 7399 | }
|
| 7400 | {
|
| 7401 | int dataSize = 0;
|
| 7402 | dataSize = 4 * unpackedFixed32_.Count;
|
| 7403 | size += dataSize;
|
| 7404 | size += 2 * unpackedFixed32_.Count;
|
| 7405 | }
|
| 7406 | {
|
| 7407 | int dataSize = 0;
|
| 7408 | dataSize = 8 * unpackedFixed64_.Count;
|
| 7409 | size += dataSize;
|
| 7410 | size += 2 * unpackedFixed64_.Count;
|
| 7411 | }
|
| 7412 | {
|
| 7413 | int dataSize = 0;
|
| 7414 | dataSize = 4 * unpackedSfixed32_.Count;
|
| 7415 | size += dataSize;
|
| 7416 | size += 2 * unpackedSfixed32_.Count;
|
| 7417 | }
|
| 7418 | {
|
| 7419 | int dataSize = 0;
|
| 7420 | dataSize = 8 * unpackedSfixed64_.Count;
|
| 7421 | size += dataSize;
|
| 7422 | size += 2 * unpackedSfixed64_.Count;
|
| 7423 | }
|
| 7424 | {
|
| 7425 | int dataSize = 0;
|
| 7426 | dataSize = 4 * unpackedFloat_.Count;
|
| 7427 | size += dataSize;
|
| 7428 | size += 2 * unpackedFloat_.Count;
|
| 7429 | }
|
| 7430 | {
|
| 7431 | int dataSize = 0;
|
| 7432 | dataSize = 8 * unpackedDouble_.Count;
|
| 7433 | size += dataSize;
|
| 7434 | size += 2 * unpackedDouble_.Count;
|
| 7435 | }
|
| 7436 | {
|
| 7437 | int dataSize = 0;
|
| 7438 | dataSize = 1 * unpackedBool_.Count;
|
| 7439 | size += dataSize;
|
| 7440 | size += 2 * unpackedBool_.Count;
|
| 7441 | }
|
| 7442 | {
|
| 7443 | int dataSize = 0;
|
| 7444 | if (unpackedEnum_.Count > 0) {
|
| 7445 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in unpackedEnum_) {
|
| 7446 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 7447 | }
|
| 7448 | size += dataSize;
|
| 7449 | size += 2 * unpackedEnum_.Count;
|
| 7450 | }
|
| 7451 | }
|
| 7452 | memoizedSerializedSize = size;
|
| 7453 | return size;
|
| 7454 | }
|
| 7455 | }
|
| 7456 |
|
| 7457 | #region Lite runtime methods
|
| 7458 | public override int GetHashCode() {
|
| 7459 | int hash = GetType().GetHashCode();
|
| 7460 | foreach(int i in unpackedInt32_)
|
| 7461 | hash ^= i.GetHashCode();
|
| 7462 | foreach(long i in unpackedInt64_)
|
| 7463 | hash ^= i.GetHashCode();
|
| 7464 | foreach(uint i in unpackedUint32_)
|
| 7465 | hash ^= i.GetHashCode();
|
| 7466 | foreach(ulong i in unpackedUint64_)
|
| 7467 | hash ^= i.GetHashCode();
|
| 7468 | foreach(int i in unpackedSint32_)
|
| 7469 | hash ^= i.GetHashCode();
|
| 7470 | foreach(long i in unpackedSint64_)
|
| 7471 | hash ^= i.GetHashCode();
|
| 7472 | foreach(uint i in unpackedFixed32_)
|
| 7473 | hash ^= i.GetHashCode();
|
| 7474 | foreach(ulong i in unpackedFixed64_)
|
| 7475 | hash ^= i.GetHashCode();
|
| 7476 | foreach(int i in unpackedSfixed32_)
|
| 7477 | hash ^= i.GetHashCode();
|
| 7478 | foreach(long i in unpackedSfixed64_)
|
| 7479 | hash ^= i.GetHashCode();
|
| 7480 | foreach(float i in unpackedFloat_)
|
| 7481 | hash ^= i.GetHashCode();
|
| 7482 | foreach(double i in unpackedDouble_)
|
| 7483 | hash ^= i.GetHashCode();
|
| 7484 | foreach(bool i in unpackedBool_)
|
| 7485 | hash ^= i.GetHashCode();
|
| 7486 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in unpackedEnum_)
|
| 7487 | hash ^= i.GetHashCode();
|
| 7488 | return hash;
|
| 7489 | }
|
| 7490 |
|
| 7491 | public override bool Equals(object obj) {
|
| 7492 | TestUnpackedTypesLite other = obj as TestUnpackedTypesLite;
|
| 7493 | if (other == null) return false;
|
| 7494 | if(unpackedInt32_.Count != other.unpackedInt32_.Count) return false;
|
| 7495 | for(int ix=0; ix < unpackedInt32_.Count; ix++)
|
| 7496 | if(!unpackedInt32_[ix].Equals(other.unpackedInt32_[ix])) return false;
|
| 7497 | if(unpackedInt64_.Count != other.unpackedInt64_.Count) return false;
|
| 7498 | for(int ix=0; ix < unpackedInt64_.Count; ix++)
|
| 7499 | if(!unpackedInt64_[ix].Equals(other.unpackedInt64_[ix])) return false;
|
| 7500 | if(unpackedUint32_.Count != other.unpackedUint32_.Count) return false;
|
| 7501 | for(int ix=0; ix < unpackedUint32_.Count; ix++)
|
| 7502 | if(!unpackedUint32_[ix].Equals(other.unpackedUint32_[ix])) return false;
|
| 7503 | if(unpackedUint64_.Count != other.unpackedUint64_.Count) return false;
|
| 7504 | for(int ix=0; ix < unpackedUint64_.Count; ix++)
|
| 7505 | if(!unpackedUint64_[ix].Equals(other.unpackedUint64_[ix])) return false;
|
| 7506 | if(unpackedSint32_.Count != other.unpackedSint32_.Count) return false;
|
| 7507 | for(int ix=0; ix < unpackedSint32_.Count; ix++)
|
| 7508 | if(!unpackedSint32_[ix].Equals(other.unpackedSint32_[ix])) return false;
|
| 7509 | if(unpackedSint64_.Count != other.unpackedSint64_.Count) return false;
|
| 7510 | for(int ix=0; ix < unpackedSint64_.Count; ix++)
|
| 7511 | if(!unpackedSint64_[ix].Equals(other.unpackedSint64_[ix])) return false;
|
| 7512 | if(unpackedFixed32_.Count != other.unpackedFixed32_.Count) return false;
|
| 7513 | for(int ix=0; ix < unpackedFixed32_.Count; ix++)
|
| 7514 | if(!unpackedFixed32_[ix].Equals(other.unpackedFixed32_[ix])) return false;
|
| 7515 | if(unpackedFixed64_.Count != other.unpackedFixed64_.Count) return false;
|
| 7516 | for(int ix=0; ix < unpackedFixed64_.Count; ix++)
|
| 7517 | if(!unpackedFixed64_[ix].Equals(other.unpackedFixed64_[ix])) return false;
|
| 7518 | if(unpackedSfixed32_.Count != other.unpackedSfixed32_.Count) return false;
|
| 7519 | for(int ix=0; ix < unpackedSfixed32_.Count; ix++)
|
| 7520 | if(!unpackedSfixed32_[ix].Equals(other.unpackedSfixed32_[ix])) return false;
|
| 7521 | if(unpackedSfixed64_.Count != other.unpackedSfixed64_.Count) return false;
|
| 7522 | for(int ix=0; ix < unpackedSfixed64_.Count; ix++)
|
| 7523 | if(!unpackedSfixed64_[ix].Equals(other.unpackedSfixed64_[ix])) return false;
|
| 7524 | if(unpackedFloat_.Count != other.unpackedFloat_.Count) return false;
|
| 7525 | for(int ix=0; ix < unpackedFloat_.Count; ix++)
|
| 7526 | if(!unpackedFloat_[ix].Equals(other.unpackedFloat_[ix])) return false;
|
| 7527 | if(unpackedDouble_.Count != other.unpackedDouble_.Count) return false;
|
| 7528 | for(int ix=0; ix < unpackedDouble_.Count; ix++)
|
| 7529 | if(!unpackedDouble_[ix].Equals(other.unpackedDouble_[ix])) return false;
|
| 7530 | if(unpackedBool_.Count != other.unpackedBool_.Count) return false;
|
| 7531 | for(int ix=0; ix < unpackedBool_.Count; ix++)
|
| 7532 | if(!unpackedBool_[ix].Equals(other.unpackedBool_[ix])) return false;
|
| 7533 | if(unpackedEnum_.Count != other.unpackedEnum_.Count) return false;
|
| 7534 | for(int ix=0; ix < unpackedEnum_.Count; ix++)
|
| 7535 | if(!unpackedEnum_[ix].Equals(other.unpackedEnum_[ix])) return false;
|
| 7536 | return true;
|
| 7537 | }
|
| 7538 |
|
| 7539 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 7540 | PrintField("unpacked_int32", unpackedInt32_, writer);
|
| 7541 | PrintField("unpacked_int64", unpackedInt64_, writer);
|
| 7542 | PrintField("unpacked_uint32", unpackedUint32_, writer);
|
| 7543 | PrintField("unpacked_uint64", unpackedUint64_, writer);
|
| 7544 | PrintField("unpacked_sint32", unpackedSint32_, writer);
|
| 7545 | PrintField("unpacked_sint64", unpackedSint64_, writer);
|
| 7546 | PrintField("unpacked_fixed32", unpackedFixed32_, writer);
|
| 7547 | PrintField("unpacked_fixed64", unpackedFixed64_, writer);
|
| 7548 | PrintField("unpacked_sfixed32", unpackedSfixed32_, writer);
|
| 7549 | PrintField("unpacked_sfixed64", unpackedSfixed64_, writer);
|
| 7550 | PrintField("unpacked_float", unpackedFloat_, writer);
|
| 7551 | PrintField("unpacked_double", unpackedDouble_, writer);
|
| 7552 | PrintField("unpacked_bool", unpackedBool_, writer);
|
| 7553 | PrintField("unpacked_enum", unpackedEnum_, writer);
|
| 7554 | }
|
| 7555 | #endregion
|
| 7556 |
|
| 7557 | public static TestUnpackedTypesLite ParseFrom(pb::ByteString data) {
|
| 7558 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7559 | }
|
| 7560 | public static TestUnpackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 7561 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7562 | }
|
| 7563 | public static TestUnpackedTypesLite ParseFrom(byte[] data) {
|
| 7564 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7565 | }
|
| 7566 | public static TestUnpackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 7567 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7568 | }
|
| 7569 | public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input) {
|
| 7570 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7571 | }
|
| 7572 | public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7573 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7574 | }
|
| 7575 | public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 7576 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 7577 | }
|
| 7578 | public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7579 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 7580 | }
|
| 7581 | public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input) {
|
| 7582 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7583 | }
|
| 7584 | public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7585 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7586 | }
|
| 7587 | public static Builder CreateBuilder() { return new Builder(); }
|
| 7588 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 7589 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 7590 | public static Builder CreateBuilder(TestUnpackedTypesLite prototype) {
|
| 7591 | return (Builder) new Builder().MergeFrom(prototype);
|
| 7592 | }
|
| 7593 |
|
| 7594 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7595 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7596 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 7597 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestUnpackedTypesLite, Builder> {
|
| 7598 | protected override Builder ThisBuilder {
|
| 7599 | get { return this; }
|
| 7600 | }
|
| 7601 | public Builder() {}
|
| 7602 |
|
| 7603 | TestUnpackedTypesLite result = new TestUnpackedTypesLite();
|
| 7604 |
|
| 7605 | protected override TestUnpackedTypesLite MessageBeingBuilt {
|
| 7606 | get { return result; }
|
| 7607 | }
|
| 7608 |
|
| 7609 | public override Builder Clear() {
|
| 7610 | result = new TestUnpackedTypesLite();
|
| 7611 | return this;
|
| 7612 | }
|
| 7613 |
|
| 7614 | public override Builder Clone() {
|
| 7615 | return new Builder().MergeFrom(result);
|
| 7616 | }
|
| 7617 |
|
| 7618 | public override TestUnpackedTypesLite DefaultInstanceForType {
|
| 7619 | get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance; }
|
| 7620 | }
|
| 7621 |
|
| 7622 | public override TestUnpackedTypesLite BuildPartial() {
|
| 7623 | if (result == null) {
|
| 7624 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 7625 | }
|
| 7626 | result.unpackedInt32_.MakeReadOnly();
|
| 7627 | result.unpackedInt64_.MakeReadOnly();
|
| 7628 | result.unpackedUint32_.MakeReadOnly();
|
| 7629 | result.unpackedUint64_.MakeReadOnly();
|
| 7630 | result.unpackedSint32_.MakeReadOnly();
|
| 7631 | result.unpackedSint64_.MakeReadOnly();
|
| 7632 | result.unpackedFixed32_.MakeReadOnly();
|
| 7633 | result.unpackedFixed64_.MakeReadOnly();
|
| 7634 | result.unpackedSfixed32_.MakeReadOnly();
|
| 7635 | result.unpackedSfixed64_.MakeReadOnly();
|
| 7636 | result.unpackedFloat_.MakeReadOnly();
|
| 7637 | result.unpackedDouble_.MakeReadOnly();
|
| 7638 | result.unpackedBool_.MakeReadOnly();
|
| 7639 | result.unpackedEnum_.MakeReadOnly();
|
| 7640 | TestUnpackedTypesLite returnMe = result;
|
| 7641 | result = null;
|
| 7642 | return returnMe;
|
| 7643 | }
|
| 7644 |
|
| 7645 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 7646 | if (other is TestUnpackedTypesLite) {
|
| 7647 | return MergeFrom((TestUnpackedTypesLite) other);
|
| 7648 | } else {
|
| 7649 | base.MergeFrom(other);
|
| 7650 | return this;
|
| 7651 | }
|
| 7652 | }
|
| 7653 |
|
| 7654 | public override Builder MergeFrom(TestUnpackedTypesLite other) {
|
| 7655 | if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance) return this;
|
| 7656 | if (other.unpackedInt32_.Count != 0) {
|
| 7657 | base.AddRange(other.unpackedInt32_, result.unpackedInt32_);
|
| 7658 | }
|
| 7659 | if (other.unpackedInt64_.Count != 0) {
|
| 7660 | base.AddRange(other.unpackedInt64_, result.unpackedInt64_);
|
| 7661 | }
|
| 7662 | if (other.unpackedUint32_.Count != 0) {
|
| 7663 | base.AddRange(other.unpackedUint32_, result.unpackedUint32_);
|
| 7664 | }
|
| 7665 | if (other.unpackedUint64_.Count != 0) {
|
| 7666 | base.AddRange(other.unpackedUint64_, result.unpackedUint64_);
|
| 7667 | }
|
| 7668 | if (other.unpackedSint32_.Count != 0) {
|
| 7669 | base.AddRange(other.unpackedSint32_, result.unpackedSint32_);
|
| 7670 | }
|
| 7671 | if (other.unpackedSint64_.Count != 0) {
|
| 7672 | base.AddRange(other.unpackedSint64_, result.unpackedSint64_);
|
| 7673 | }
|
| 7674 | if (other.unpackedFixed32_.Count != 0) {
|
| 7675 | base.AddRange(other.unpackedFixed32_, result.unpackedFixed32_);
|
| 7676 | }
|
| 7677 | if (other.unpackedFixed64_.Count != 0) {
|
| 7678 | base.AddRange(other.unpackedFixed64_, result.unpackedFixed64_);
|
| 7679 | }
|
| 7680 | if (other.unpackedSfixed32_.Count != 0) {
|
| 7681 | base.AddRange(other.unpackedSfixed32_, result.unpackedSfixed32_);
|
| 7682 | }
|
| 7683 | if (other.unpackedSfixed64_.Count != 0) {
|
| 7684 | base.AddRange(other.unpackedSfixed64_, result.unpackedSfixed64_);
|
| 7685 | }
|
| 7686 | if (other.unpackedFloat_.Count != 0) {
|
| 7687 | base.AddRange(other.unpackedFloat_, result.unpackedFloat_);
|
| 7688 | }
|
| 7689 | if (other.unpackedDouble_.Count != 0) {
|
| 7690 | base.AddRange(other.unpackedDouble_, result.unpackedDouble_);
|
| 7691 | }
|
| 7692 | if (other.unpackedBool_.Count != 0) {
|
| 7693 | base.AddRange(other.unpackedBool_, result.unpackedBool_);
|
| 7694 | }
|
| 7695 | if (other.unpackedEnum_.Count != 0) {
|
| 7696 | base.AddRange(other.unpackedEnum_, result.unpackedEnum_);
|
| 7697 | }
|
| 7698 | return this;
|
| 7699 | }
|
| 7700 |
|
| 7701 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 7702 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 7703 | }
|
| 7704 |
|
| 7705 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7706 | uint tag;
|
| 7707 | string field_name;
|
| 7708 | while (input.ReadTag(out tag, out field_name)) {
|
| 7709 | switch (tag) {
|
| 7710 | case 0: {
|
| 7711 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 7712 | }
|
| 7713 | default: {
|
| 7714 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 7715 | return this;
|
| 7716 | }
|
| 7717 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 7718 | break;
|
| 7719 | }
|
| 7720 | case 722:
|
| 7721 | case 720: {
|
| 7722 | input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.unpackedInt32_);
|
| 7723 | break;
|
| 7724 | }
|
| 7725 | case 730:
|
| 7726 | case 728: {
|
| 7727 | input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.unpackedInt64_);
|
| 7728 | break;
|
| 7729 | }
|
| 7730 | case 738:
|
| 7731 | case 736: {
|
| 7732 | input.ReadPrimitiveArray(pbd::FieldType.UInt32, tag, field_name, result.unpackedUint32_);
|
| 7733 | break;
|
| 7734 | }
|
| 7735 | case 746:
|
| 7736 | case 744: {
|
| 7737 | input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.unpackedUint64_);
|
| 7738 | break;
|
| 7739 | }
|
| 7740 | case 754:
|
| 7741 | case 752: {
|
| 7742 | input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.unpackedSint32_);
|
| 7743 | break;
|
| 7744 | }
|
| 7745 | case 762:
|
| 7746 | case 760: {
|
| 7747 | input.ReadPrimitiveArray(pbd::FieldType.SInt64, tag, field_name, result.unpackedSint64_);
|
| 7748 | break;
|
| 7749 | }
|
| 7750 | case 770:
|
| 7751 | case 773: {
|
| 7752 | input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.unpackedFixed32_);
|
| 7753 | break;
|
| 7754 | }
|
| 7755 | case 778:
|
| 7756 | case 777: {
|
| 7757 | input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.unpackedFixed64_);
|
| 7758 | break;
|
| 7759 | }
|
| 7760 | case 786:
|
| 7761 | case 789: {
|
| 7762 | input.ReadPrimitiveArray(pbd::FieldType.SFixed32, tag, field_name, result.unpackedSfixed32_);
|
| 7763 | break;
|
| 7764 | }
|
| 7765 | case 794:
|
| 7766 | case 793: {
|
| 7767 | input.ReadPrimitiveArray(pbd::FieldType.SFixed64, tag, field_name, result.unpackedSfixed64_);
|
| 7768 | break;
|
| 7769 | }
|
| 7770 | case 802:
|
| 7771 | case 805: {
|
| 7772 | input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.unpackedFloat_);
|
| 7773 | break;
|
| 7774 | }
|
| 7775 | case 810:
|
| 7776 | case 809: {
|
| 7777 | input.ReadPrimitiveArray(pbd::FieldType.Double, tag, field_name, result.unpackedDouble_);
|
| 7778 | break;
|
| 7779 | }
|
| 7780 | case 818:
|
| 7781 | case 816: {
|
| 7782 | input.ReadPrimitiveArray(pbd::FieldType.Bool, tag, field_name, result.unpackedBool_);
|
| 7783 | break;
|
| 7784 | }
|
| 7785 | case 826:
|
| 7786 | case 824: {
|
| 7787 | scg::ICollection<object> unknownItems;
|
| 7788 | input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(tag, field_name, result.unpackedEnum_, out unknownItems);
|
| 7789 | break;
|
| 7790 | }
|
| 7791 | }
|
| 7792 | }
|
| 7793 |
|
| 7794 | return this;
|
| 7795 | }
|
| 7796 |
|
| 7797 |
|
| 7798 | public pbc::IPopsicleList<int> UnpackedInt32List {
|
| 7799 | get { return result.unpackedInt32_; }
|
| 7800 | }
|
| 7801 | public int UnpackedInt32Count {
|
| 7802 | get { return result.UnpackedInt32Count; }
|
| 7803 | }
|
| 7804 | public int GetUnpackedInt32(int index) {
|
| 7805 | return result.GetUnpackedInt32(index);
|
| 7806 | }
|
| 7807 | public Builder SetUnpackedInt32(int index, int value) {
|
| 7808 | result.unpackedInt32_[index] = value;
|
| 7809 | return this;
|
| 7810 | }
|
| 7811 | public Builder AddUnpackedInt32(int value) {
|
| 7812 | result.unpackedInt32_.Add(value);
|
| 7813 | return this;
|
| 7814 | }
|
| 7815 | public Builder AddRangeUnpackedInt32(scg::IEnumerable<int> values) {
|
| 7816 | base.AddRange(values, result.unpackedInt32_);
|
| 7817 | return this;
|
| 7818 | }
|
| 7819 | public Builder ClearUnpackedInt32() {
|
| 7820 | result.unpackedInt32_.Clear();
|
| 7821 | return this;
|
| 7822 | }
|
| 7823 |
|
| 7824 | public pbc::IPopsicleList<long> UnpackedInt64List {
|
| 7825 | get { return result.unpackedInt64_; }
|
| 7826 | }
|
| 7827 | public int UnpackedInt64Count {
|
| 7828 | get { return result.UnpackedInt64Count; }
|
| 7829 | }
|
| 7830 | public long GetUnpackedInt64(int index) {
|
| 7831 | return result.GetUnpackedInt64(index);
|
| 7832 | }
|
| 7833 | public Builder SetUnpackedInt64(int index, long value) {
|
| 7834 | result.unpackedInt64_[index] = value;
|
| 7835 | return this;
|
| 7836 | }
|
| 7837 | public Builder AddUnpackedInt64(long value) {
|
| 7838 | result.unpackedInt64_.Add(value);
|
| 7839 | return this;
|
| 7840 | }
|
| 7841 | public Builder AddRangeUnpackedInt64(scg::IEnumerable<long> values) {
|
| 7842 | base.AddRange(values, result.unpackedInt64_);
|
| 7843 | return this;
|
| 7844 | }
|
| 7845 | public Builder ClearUnpackedInt64() {
|
| 7846 | result.unpackedInt64_.Clear();
|
| 7847 | return this;
|
| 7848 | }
|
| 7849 |
|
| 7850 | [global::System.CLSCompliant(false)]
|
| 7851 | public pbc::IPopsicleList<uint> UnpackedUint32List {
|
| 7852 | get { return result.unpackedUint32_; }
|
| 7853 | }
|
| 7854 | public int UnpackedUint32Count {
|
| 7855 | get { return result.UnpackedUint32Count; }
|
| 7856 | }
|
| 7857 | [global::System.CLSCompliant(false)]
|
| 7858 | public uint GetUnpackedUint32(int index) {
|
| 7859 | return result.GetUnpackedUint32(index);
|
| 7860 | }
|
| 7861 | [global::System.CLSCompliant(false)]
|
| 7862 | public Builder SetUnpackedUint32(int index, uint value) {
|
| 7863 | result.unpackedUint32_[index] = value;
|
| 7864 | return this;
|
| 7865 | }
|
| 7866 | [global::System.CLSCompliant(false)]
|
| 7867 | public Builder AddUnpackedUint32(uint value) {
|
| 7868 | result.unpackedUint32_.Add(value);
|
| 7869 | return this;
|
| 7870 | }
|
| 7871 | [global::System.CLSCompliant(false)]
|
| 7872 | public Builder AddRangeUnpackedUint32(scg::IEnumerable<uint> values) {
|
| 7873 | base.AddRange(values, result.unpackedUint32_);
|
| 7874 | return this;
|
| 7875 | }
|
| 7876 | public Builder ClearUnpackedUint32() {
|
| 7877 | result.unpackedUint32_.Clear();
|
| 7878 | return this;
|
| 7879 | }
|
| 7880 |
|
| 7881 | [global::System.CLSCompliant(false)]
|
| 7882 | public pbc::IPopsicleList<ulong> UnpackedUint64List {
|
| 7883 | get { return result.unpackedUint64_; }
|
| 7884 | }
|
| 7885 | public int UnpackedUint64Count {
|
| 7886 | get { return result.UnpackedUint64Count; }
|
| 7887 | }
|
| 7888 | [global::System.CLSCompliant(false)]
|
| 7889 | public ulong GetUnpackedUint64(int index) {
|
| 7890 | return result.GetUnpackedUint64(index);
|
| 7891 | }
|
| 7892 | [global::System.CLSCompliant(false)]
|
| 7893 | public Builder SetUnpackedUint64(int index, ulong value) {
|
| 7894 | result.unpackedUint64_[index] = value;
|
| 7895 | return this;
|
| 7896 | }
|
| 7897 | [global::System.CLSCompliant(false)]
|
| 7898 | public Builder AddUnpackedUint64(ulong value) {
|
| 7899 | result.unpackedUint64_.Add(value);
|
| 7900 | return this;
|
| 7901 | }
|
| 7902 | [global::System.CLSCompliant(false)]
|
| 7903 | public Builder AddRangeUnpackedUint64(scg::IEnumerable<ulong> values) {
|
| 7904 | base.AddRange(values, result.unpackedUint64_);
|
| 7905 | return this;
|
| 7906 | }
|
| 7907 | public Builder ClearUnpackedUint64() {
|
| 7908 | result.unpackedUint64_.Clear();
|
| 7909 | return this;
|
| 7910 | }
|
| 7911 |
|
| 7912 | public pbc::IPopsicleList<int> UnpackedSint32List {
|
| 7913 | get { return result.unpackedSint32_; }
|
| 7914 | }
|
| 7915 | public int UnpackedSint32Count {
|
| 7916 | get { return result.UnpackedSint32Count; }
|
| 7917 | }
|
| 7918 | public int GetUnpackedSint32(int index) {
|
| 7919 | return result.GetUnpackedSint32(index);
|
| 7920 | }
|
| 7921 | public Builder SetUnpackedSint32(int index, int value) {
|
| 7922 | result.unpackedSint32_[index] = value;
|
| 7923 | return this;
|
| 7924 | }
|
| 7925 | public Builder AddUnpackedSint32(int value) {
|
| 7926 | result.unpackedSint32_.Add(value);
|
| 7927 | return this;
|
| 7928 | }
|
| 7929 | public Builder AddRangeUnpackedSint32(scg::IEnumerable<int> values) {
|
| 7930 | base.AddRange(values, result.unpackedSint32_);
|
| 7931 | return this;
|
| 7932 | }
|
| 7933 | public Builder ClearUnpackedSint32() {
|
| 7934 | result.unpackedSint32_.Clear();
|
| 7935 | return this;
|
| 7936 | }
|
| 7937 |
|
| 7938 | public pbc::IPopsicleList<long> UnpackedSint64List {
|
| 7939 | get { return result.unpackedSint64_; }
|
| 7940 | }
|
| 7941 | public int UnpackedSint64Count {
|
| 7942 | get { return result.UnpackedSint64Count; }
|
| 7943 | }
|
| 7944 | public long GetUnpackedSint64(int index) {
|
| 7945 | return result.GetUnpackedSint64(index);
|
| 7946 | }
|
| 7947 | public Builder SetUnpackedSint64(int index, long value) {
|
| 7948 | result.unpackedSint64_[index] = value;
|
| 7949 | return this;
|
| 7950 | }
|
| 7951 | public Builder AddUnpackedSint64(long value) {
|
| 7952 | result.unpackedSint64_.Add(value);
|
| 7953 | return this;
|
| 7954 | }
|
| 7955 | public Builder AddRangeUnpackedSint64(scg::IEnumerable<long> values) {
|
| 7956 | base.AddRange(values, result.unpackedSint64_);
|
| 7957 | return this;
|
| 7958 | }
|
| 7959 | public Builder ClearUnpackedSint64() {
|
| 7960 | result.unpackedSint64_.Clear();
|
| 7961 | return this;
|
| 7962 | }
|
| 7963 |
|
| 7964 | [global::System.CLSCompliant(false)]
|
| 7965 | public pbc::IPopsicleList<uint> UnpackedFixed32List {
|
| 7966 | get { return result.unpackedFixed32_; }
|
| 7967 | }
|
| 7968 | public int UnpackedFixed32Count {
|
| 7969 | get { return result.UnpackedFixed32Count; }
|
| 7970 | }
|
| 7971 | [global::System.CLSCompliant(false)]
|
| 7972 | public uint GetUnpackedFixed32(int index) {
|
| 7973 | return result.GetUnpackedFixed32(index);
|
| 7974 | }
|
| 7975 | [global::System.CLSCompliant(false)]
|
| 7976 | public Builder SetUnpackedFixed32(int index, uint value) {
|
| 7977 | result.unpackedFixed32_[index] = value;
|
| 7978 | return this;
|
| 7979 | }
|
| 7980 | [global::System.CLSCompliant(false)]
|
| 7981 | public Builder AddUnpackedFixed32(uint value) {
|
| 7982 | result.unpackedFixed32_.Add(value);
|
| 7983 | return this;
|
| 7984 | }
|
| 7985 | [global::System.CLSCompliant(false)]
|
| 7986 | public Builder AddRangeUnpackedFixed32(scg::IEnumerable<uint> values) {
|
| 7987 | base.AddRange(values, result.unpackedFixed32_);
|
| 7988 | return this;
|
| 7989 | }
|
| 7990 | public Builder ClearUnpackedFixed32() {
|
| 7991 | result.unpackedFixed32_.Clear();
|
| 7992 | return this;
|
| 7993 | }
|
| 7994 |
|
| 7995 | [global::System.CLSCompliant(false)]
|
| 7996 | public pbc::IPopsicleList<ulong> UnpackedFixed64List {
|
| 7997 | get { return result.unpackedFixed64_; }
|
| 7998 | }
|
| 7999 | public int UnpackedFixed64Count {
|
| 8000 | get { return result.UnpackedFixed64Count; }
|
| 8001 | }
|
| 8002 | [global::System.CLSCompliant(false)]
|
| 8003 | public ulong GetUnpackedFixed64(int index) {
|
| 8004 | return result.GetUnpackedFixed64(index);
|
| 8005 | }
|
| 8006 | [global::System.CLSCompliant(false)]
|
| 8007 | public Builder SetUnpackedFixed64(int index, ulong value) {
|
| 8008 | result.unpackedFixed64_[index] = value;
|
| 8009 | return this;
|
| 8010 | }
|
| 8011 | [global::System.CLSCompliant(false)]
|
| 8012 | public Builder AddUnpackedFixed64(ulong value) {
|
| 8013 | result.unpackedFixed64_.Add(value);
|
| 8014 | return this;
|
| 8015 | }
|
| 8016 | [global::System.CLSCompliant(false)]
|
| 8017 | public Builder AddRangeUnpackedFixed64(scg::IEnumerable<ulong> values) {
|
| 8018 | base.AddRange(values, result.unpackedFixed64_);
|
| 8019 | return this;
|
| 8020 | }
|
| 8021 | public Builder ClearUnpackedFixed64() {
|
| 8022 | result.unpackedFixed64_.Clear();
|
| 8023 | return this;
|
| 8024 | }
|
| 8025 |
|
| 8026 | public pbc::IPopsicleList<int> UnpackedSfixed32List {
|
| 8027 | get { return result.unpackedSfixed32_; }
|
| 8028 | }
|
| 8029 | public int UnpackedSfixed32Count {
|
| 8030 | get { return result.UnpackedSfixed32Count; }
|
| 8031 | }
|
| 8032 | public int GetUnpackedSfixed32(int index) {
|
| 8033 | return result.GetUnpackedSfixed32(index);
|
| 8034 | }
|
| 8035 | public Builder SetUnpackedSfixed32(int index, int value) {
|
| 8036 | result.unpackedSfixed32_[index] = value;
|
| 8037 | return this;
|
| 8038 | }
|
| 8039 | public Builder AddUnpackedSfixed32(int value) {
|
| 8040 | result.unpackedSfixed32_.Add(value);
|
| 8041 | return this;
|
| 8042 | }
|
| 8043 | public Builder AddRangeUnpackedSfixed32(scg::IEnumerable<int> values) {
|
| 8044 | base.AddRange(values, result.unpackedSfixed32_);
|
| 8045 | return this;
|
| 8046 | }
|
| 8047 | public Builder ClearUnpackedSfixed32() {
|
| 8048 | result.unpackedSfixed32_.Clear();
|
| 8049 | return this;
|
| 8050 | }
|
| 8051 |
|
| 8052 | public pbc::IPopsicleList<long> UnpackedSfixed64List {
|
| 8053 | get { return result.unpackedSfixed64_; }
|
| 8054 | }
|
| 8055 | public int UnpackedSfixed64Count {
|
| 8056 | get { return result.UnpackedSfixed64Count; }
|
| 8057 | }
|
| 8058 | public long GetUnpackedSfixed64(int index) {
|
| 8059 | return result.GetUnpackedSfixed64(index);
|
| 8060 | }
|
| 8061 | public Builder SetUnpackedSfixed64(int index, long value) {
|
| 8062 | result.unpackedSfixed64_[index] = value;
|
| 8063 | return this;
|
| 8064 | }
|
| 8065 | public Builder AddUnpackedSfixed64(long value) {
|
| 8066 | result.unpackedSfixed64_.Add(value);
|
| 8067 | return this;
|
| 8068 | }
|
| 8069 | public Builder AddRangeUnpackedSfixed64(scg::IEnumerable<long> values) {
|
| 8070 | base.AddRange(values, result.unpackedSfixed64_);
|
| 8071 | return this;
|
| 8072 | }
|
| 8073 | public Builder ClearUnpackedSfixed64() {
|
| 8074 | result.unpackedSfixed64_.Clear();
|
| 8075 | return this;
|
| 8076 | }
|
| 8077 |
|
| 8078 | public pbc::IPopsicleList<float> UnpackedFloatList {
|
| 8079 | get { return result.unpackedFloat_; }
|
| 8080 | }
|
| 8081 | public int UnpackedFloatCount {
|
| 8082 | get { return result.UnpackedFloatCount; }
|
| 8083 | }
|
| 8084 | public float GetUnpackedFloat(int index) {
|
| 8085 | return result.GetUnpackedFloat(index);
|
| 8086 | }
|
| 8087 | public Builder SetUnpackedFloat(int index, float value) {
|
| 8088 | result.unpackedFloat_[index] = value;
|
| 8089 | return this;
|
| 8090 | }
|
| 8091 | public Builder AddUnpackedFloat(float value) {
|
| 8092 | result.unpackedFloat_.Add(value);
|
| 8093 | return this;
|
| 8094 | }
|
| 8095 | public Builder AddRangeUnpackedFloat(scg::IEnumerable<float> values) {
|
| 8096 | base.AddRange(values, result.unpackedFloat_);
|
| 8097 | return this;
|
| 8098 | }
|
| 8099 | public Builder ClearUnpackedFloat() {
|
| 8100 | result.unpackedFloat_.Clear();
|
| 8101 | return this;
|
| 8102 | }
|
| 8103 |
|
| 8104 | public pbc::IPopsicleList<double> UnpackedDoubleList {
|
| 8105 | get { return result.unpackedDouble_; }
|
| 8106 | }
|
| 8107 | public int UnpackedDoubleCount {
|
| 8108 | get { return result.UnpackedDoubleCount; }
|
| 8109 | }
|
| 8110 | public double GetUnpackedDouble(int index) {
|
| 8111 | return result.GetUnpackedDouble(index);
|
| 8112 | }
|
| 8113 | public Builder SetUnpackedDouble(int index, double value) {
|
| 8114 | result.unpackedDouble_[index] = value;
|
| 8115 | return this;
|
| 8116 | }
|
| 8117 | public Builder AddUnpackedDouble(double value) {
|
| 8118 | result.unpackedDouble_.Add(value);
|
| 8119 | return this;
|
| 8120 | }
|
| 8121 | public Builder AddRangeUnpackedDouble(scg::IEnumerable<double> values) {
|
| 8122 | base.AddRange(values, result.unpackedDouble_);
|
| 8123 | return this;
|
| 8124 | }
|
| 8125 | public Builder ClearUnpackedDouble() {
|
| 8126 | result.unpackedDouble_.Clear();
|
| 8127 | return this;
|
| 8128 | }
|
| 8129 |
|
| 8130 | public pbc::IPopsicleList<bool> UnpackedBoolList {
|
| 8131 | get { return result.unpackedBool_; }
|
| 8132 | }
|
| 8133 | public int UnpackedBoolCount {
|
| 8134 | get { return result.UnpackedBoolCount; }
|
| 8135 | }
|
| 8136 | public bool GetUnpackedBool(int index) {
|
| 8137 | return result.GetUnpackedBool(index);
|
| 8138 | }
|
| 8139 | public Builder SetUnpackedBool(int index, bool value) {
|
| 8140 | result.unpackedBool_[index] = value;
|
| 8141 | return this;
|
| 8142 | }
|
| 8143 | public Builder AddUnpackedBool(bool value) {
|
| 8144 | result.unpackedBool_.Add(value);
|
| 8145 | return this;
|
| 8146 | }
|
| 8147 | public Builder AddRangeUnpackedBool(scg::IEnumerable<bool> values) {
|
| 8148 | base.AddRange(values, result.unpackedBool_);
|
| 8149 | return this;
|
| 8150 | }
|
| 8151 | public Builder ClearUnpackedBool() {
|
| 8152 | result.unpackedBool_.Clear();
|
| 8153 | return this;
|
| 8154 | }
|
| 8155 |
|
| 8156 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> UnpackedEnumList {
|
| 8157 | get { return result.unpackedEnum_; }
|
| 8158 | }
|
| 8159 | public int UnpackedEnumCount {
|
| 8160 | get { return result.UnpackedEnumCount; }
|
| 8161 | }
|
| 8162 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetUnpackedEnum(int index) {
|
| 8163 | return result.GetUnpackedEnum(index);
|
| 8164 | }
|
| 8165 | public Builder SetUnpackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 8166 | result.unpackedEnum_[index] = value;
|
| 8167 | return this;
|
| 8168 | }
|
| 8169 | public Builder AddUnpackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 8170 | result.unpackedEnum_.Add(value);
|
| 8171 | return this;
|
| 8172 | }
|
| 8173 | public Builder AddRangeUnpackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
|
| 8174 | base.AddRange(values, result.unpackedEnum_);
|
| 8175 | return this;
|
| 8176 | }
|
| 8177 | public Builder ClearUnpackedEnum() {
|
| 8178 | result.unpackedEnum_.Clear();
|
| 8179 | return this;
|
| 8180 | }
|
| 8181 | }
|
| 8182 | static TestUnpackedTypesLite() {
|
| 8183 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8184 | }
|
| 8185 | }
|
| 8186 |
|
| 8187 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8188 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8189 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8190 | public sealed partial class TestAllExtensionsLite : pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder> {
|
| 8191 | private static readonly TestAllExtensionsLite defaultInstance = new Builder().BuildPartial();
|
| 8192 | public static TestAllExtensionsLite DefaultInstance {
|
| 8193 | get { return defaultInstance; }
|
| 8194 | }
|
| 8195 |
|
| 8196 | public override TestAllExtensionsLite DefaultInstanceForType {
|
| 8197 | get { return defaultInstance; }
|
| 8198 | }
|
| 8199 |
|
| 8200 | protected override TestAllExtensionsLite ThisMessage {
|
| 8201 | get { return this; }
|
| 8202 | }
|
| 8203 |
|
| 8204 | public override bool IsInitialized {
|
| 8205 | get {
|
| 8206 | if (!ExtensionsAreInitialized) return false;
|
| 8207 | return true;
|
| 8208 | }
|
| 8209 | }
|
| 8210 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8211 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8212 | int size = SerializedSize;
|
| 8213 | pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
|
| 8214 | extensionWriter.WriteUntil(536870912, output);
|
| 8215 | }
|
| 8216 |
|
| 8217 | private int memoizedSerializedSize = -1;
|
| 8218 | public override int SerializedSize {
|
| 8219 | get {
|
| 8220 | int size = memoizedSerializedSize;
|
| 8221 | if (size != -1) return size;
|
| 8222 |
|
| 8223 | size = 0;
|
| 8224 | size += ExtensionsSerializedSize;
|
| 8225 | memoizedSerializedSize = size;
|
| 8226 | return size;
|
| 8227 | }
|
| 8228 | }
|
| 8229 |
|
| 8230 | #region Lite runtime methods
|
| 8231 | public override int GetHashCode() {
|
| 8232 | int hash = GetType().GetHashCode();
|
| 8233 | hash ^= base.GetHashCode();
|
| 8234 | return hash;
|
| 8235 | }
|
| 8236 |
|
| 8237 | public override bool Equals(object obj) {
|
| 8238 | TestAllExtensionsLite other = obj as TestAllExtensionsLite;
|
| 8239 | if (other == null) return false;
|
| 8240 | if (!base.Equals(other)) return false;
|
| 8241 | return true;
|
| 8242 | }
|
| 8243 |
|
| 8244 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8245 | base.PrintTo(writer);
|
| 8246 | }
|
| 8247 | #endregion
|
| 8248 |
|
| 8249 | public static TestAllExtensionsLite ParseFrom(pb::ByteString data) {
|
| 8250 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8251 | }
|
| 8252 | public static TestAllExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8253 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8254 | }
|
| 8255 | public static TestAllExtensionsLite ParseFrom(byte[] data) {
|
| 8256 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8257 | }
|
| 8258 | public static TestAllExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 8259 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8260 | }
|
| 8261 | public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input) {
|
| 8262 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8263 | }
|
| 8264 | public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8265 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8266 | }
|
| 8267 | public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 8268 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 8269 | }
|
| 8270 | public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8271 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 8272 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8273 | public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8274 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8275 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8276 | public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8277 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8278 | }
|
| 8279 | public static Builder CreateBuilder() { return new Builder(); }
|
| 8280 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 8281 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 8282 | public static Builder CreateBuilder(TestAllExtensionsLite prototype) {
|
| 8283 | return (Builder) new Builder().MergeFrom(prototype);
|
| 8284 | }
|
| 8285 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8286 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8287 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8288 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8289 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestAllExtensionsLite, Builder> {
|
| 8290 | protected override Builder ThisBuilder {
|
| 8291 | get { return this; }
|
| 8292 | }
|
| 8293 | public Builder() {}
|
| 8294 |
|
| 8295 | TestAllExtensionsLite result = new TestAllExtensionsLite();
|
| 8296 |
|
| 8297 | protected override TestAllExtensionsLite MessageBeingBuilt {
|
| 8298 | get { return result; }
|
| 8299 | }
|
| 8300 |
|
| 8301 | public override Builder Clear() {
|
| 8302 | result = new TestAllExtensionsLite();
|
| 8303 | return this;
|
| 8304 | }
|
| 8305 |
|
| 8306 | public override Builder Clone() {
|
| 8307 | return new Builder().MergeFrom(result);
|
| 8308 | }
|
| 8309 |
|
| 8310 | public override TestAllExtensionsLite DefaultInstanceForType {
|
| 8311 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance; }
|
| 8312 | }
|
| 8313 |
|
| 8314 | public override TestAllExtensionsLite BuildPartial() {
|
| 8315 | if (result == null) {
|
| 8316 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 8317 | }
|
| 8318 | TestAllExtensionsLite returnMe = result;
|
| 8319 | result = null;
|
| 8320 | return returnMe;
|
| 8321 | }
|
| 8322 |
|
| 8323 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 8324 | if (other is TestAllExtensionsLite) {
|
| 8325 | return MergeFrom((TestAllExtensionsLite) other);
|
| 8326 | } else {
|
| 8327 | base.MergeFrom(other);
|
| 8328 | return this;
|
| 8329 | }
|
| 8330 | }
|
| 8331 |
|
| 8332 | public override Builder MergeFrom(TestAllExtensionsLite other) {
|
| 8333 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance) return this;
|
| 8334 | this.MergeExtensionFields(other);
|
| 8335 | return this;
|
| 8336 | }
|
| 8337 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8338 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8339 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 8340 | }
|
| 8341 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8342 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8343 | uint tag;
|
| 8344 | string field_name;
|
| 8345 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8346 | switch (tag) {
|
| 8347 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 8348 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8349 | }
|
| 8350 | default: {
|
| 8351 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 8352 | return this;
|
| 8353 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8354 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8355 | break;
|
| 8356 | }
|
| 8357 | }
|
| 8358 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8359 |
|
| 8360 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8361 | }
|
| 8362 |
|
| 8363 | }
|
| 8364 | static TestAllExtensionsLite() {
|
| 8365 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8366 | }
|
| 8367 | }
|
| 8368 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8369 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8370 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8371 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8372 | public sealed partial class OptionalGroup_extension_lite : pb::GeneratedMessageLite<OptionalGroup_extension_lite, OptionalGroup_extension_lite.Builder> {
|
| 8373 | private static readonly OptionalGroup_extension_lite defaultInstance = new Builder().BuildPartial();
|
| 8374 | public static OptionalGroup_extension_lite DefaultInstance {
|
| 8375 | get { return defaultInstance; }
|
| 8376 | }
|
| 8377 |
|
| 8378 | public override OptionalGroup_extension_lite DefaultInstanceForType {
|
| 8379 | get { return defaultInstance; }
|
| 8380 | }
|
| 8381 |
|
| 8382 | protected override OptionalGroup_extension_lite ThisMessage {
|
| 8383 | get { return this; }
|
| 8384 | }
|
| 8385 |
|
| 8386 | public const int AFieldNumber = 17;
|
| 8387 | private bool hasA;
|
| 8388 | private int a_ = 0;
|
| 8389 | public bool HasA {
|
| 8390 | get { return hasA; }
|
| 8391 | }
|
| 8392 | public int A {
|
| 8393 | get { return a_; }
|
| 8394 | }
|
| 8395 |
|
| 8396 | public override bool IsInitialized {
|
| 8397 | get {
|
| 8398 | return true;
|
| 8399 | }
|
| 8400 | }
|
| 8401 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8402 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8403 | int size = SerializedSize;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8404 | if (hasA) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 8405 | output.WriteInt32(17, "a", A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8406 | }
|
| 8407 | }
|
| 8408 |
|
| 8409 | private int memoizedSerializedSize = -1;
|
| 8410 | public override int SerializedSize {
|
| 8411 | get {
|
| 8412 | int size = memoizedSerializedSize;
|
| 8413 | if (size != -1) return size;
|
| 8414 |
|
| 8415 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8416 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8417 | size += pb::CodedOutputStream.ComputeInt32Size(17, A);
|
| 8418 | }
|
| 8419 | memoizedSerializedSize = size;
|
| 8420 | return size;
|
| 8421 | }
|
| 8422 | }
|
| 8423 |
|
| 8424 | #region Lite runtime methods
|
| 8425 | public override int GetHashCode() {
|
| 8426 | int hash = GetType().GetHashCode();
|
| 8427 | if (hasA) hash ^= a_.GetHashCode();
|
| 8428 | return hash;
|
| 8429 | }
|
| 8430 |
|
| 8431 | public override bool Equals(object obj) {
|
| 8432 | OptionalGroup_extension_lite other = obj as OptionalGroup_extension_lite;
|
| 8433 | if (other == null) return false;
|
| 8434 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 8435 | return true;
|
| 8436 | }
|
| 8437 |
|
| 8438 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8439 | PrintField("a", hasA, a_, writer);
|
| 8440 | }
|
| 8441 | #endregion
|
| 8442 |
|
| 8443 | public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data) {
|
| 8444 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8445 | }
|
| 8446 | public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8447 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8448 | }
|
| 8449 | public static OptionalGroup_extension_lite ParseFrom(byte[] data) {
|
| 8450 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8451 | }
|
| 8452 | public static OptionalGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 8453 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8454 | }
|
| 8455 | public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
|
| 8456 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8457 | }
|
| 8458 | public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8459 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8460 | }
|
| 8461 | public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 8462 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 8463 | }
|
| 8464 | public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8465 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 8466 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8467 | public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8468 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8469 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8470 | public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8471 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8472 | }
|
| 8473 | public static Builder CreateBuilder() { return new Builder(); }
|
| 8474 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 8475 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 8476 | public static Builder CreateBuilder(OptionalGroup_extension_lite prototype) {
|
| 8477 | return (Builder) new Builder().MergeFrom(prototype);
|
| 8478 | }
|
| 8479 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8480 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8481 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8482 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8483 | public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup_extension_lite, Builder> {
|
| 8484 | protected override Builder ThisBuilder {
|
| 8485 | get { return this; }
|
| 8486 | }
|
| 8487 | public Builder() {}
|
| 8488 |
|
| 8489 | OptionalGroup_extension_lite result = new OptionalGroup_extension_lite();
|
| 8490 |
|
| 8491 | protected override OptionalGroup_extension_lite MessageBeingBuilt {
|
| 8492 | get { return result; }
|
| 8493 | }
|
| 8494 |
|
| 8495 | public override Builder Clear() {
|
| 8496 | result = new OptionalGroup_extension_lite();
|
| 8497 | return this;
|
| 8498 | }
|
| 8499 |
|
| 8500 | public override Builder Clone() {
|
| 8501 | return new Builder().MergeFrom(result);
|
| 8502 | }
|
| 8503 |
|
| 8504 | public override OptionalGroup_extension_lite DefaultInstanceForType {
|
| 8505 | get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance; }
|
| 8506 | }
|
| 8507 |
|
| 8508 | public override OptionalGroup_extension_lite BuildPartial() {
|
| 8509 | if (result == null) {
|
| 8510 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 8511 | }
|
| 8512 | OptionalGroup_extension_lite returnMe = result;
|
| 8513 | result = null;
|
| 8514 | return returnMe;
|
| 8515 | }
|
| 8516 |
|
| 8517 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 8518 | if (other is OptionalGroup_extension_lite) {
|
| 8519 | return MergeFrom((OptionalGroup_extension_lite) other);
|
| 8520 | } else {
|
| 8521 | base.MergeFrom(other);
|
| 8522 | return this;
|
| 8523 | }
|
| 8524 | }
|
| 8525 |
|
| 8526 | public override Builder MergeFrom(OptionalGroup_extension_lite other) {
|
| 8527 | if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance) return this;
|
| 8528 | if (other.HasA) {
|
| 8529 | A = other.A;
|
| 8530 | }
|
| 8531 | return this;
|
| 8532 | }
|
| 8533 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8534 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8535 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 8536 | }
|
| 8537 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8538 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8539 | uint tag;
|
| 8540 | string field_name;
|
| 8541 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8542 | switch (tag) {
|
| 8543 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 8544 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8545 | }
|
| 8546 | default: {
|
| 8547 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 8548 | return this;
|
| 8549 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8550 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8551 | break;
|
| 8552 | }
|
| 8553 | case 136: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8554 | result.hasA |= input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8555 | break;
|
| 8556 | }
|
| 8557 | }
|
| 8558 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8559 |
|
| 8560 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8561 | }
|
| 8562 |
|
| 8563 |
|
| 8564 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8565 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8566 | }
|
| 8567 | public int A {
|
| 8568 | get { return result.A; }
|
| 8569 | set { SetA(value); }
|
| 8570 | }
|
| 8571 | public Builder SetA(int value) {
|
| 8572 | result.hasA = true;
|
| 8573 | result.a_ = value;
|
| 8574 | return this;
|
| 8575 | }
|
| 8576 | public Builder ClearA() {
|
| 8577 | result.hasA = false;
|
| 8578 | result.a_ = 0;
|
| 8579 | return this;
|
| 8580 | }
|
| 8581 | }
|
| 8582 | static OptionalGroup_extension_lite() {
|
| 8583 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8584 | }
|
| 8585 | }
|
| 8586 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8587 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8588 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8589 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8590 | public sealed partial class RepeatedGroup_extension_lite : pb::GeneratedMessageLite<RepeatedGroup_extension_lite, RepeatedGroup_extension_lite.Builder> {
|
| 8591 | private static readonly RepeatedGroup_extension_lite defaultInstance = new Builder().BuildPartial();
|
| 8592 | public static RepeatedGroup_extension_lite DefaultInstance {
|
| 8593 | get { return defaultInstance; }
|
| 8594 | }
|
| 8595 |
|
| 8596 | public override RepeatedGroup_extension_lite DefaultInstanceForType {
|
| 8597 | get { return defaultInstance; }
|
| 8598 | }
|
| 8599 |
|
| 8600 | protected override RepeatedGroup_extension_lite ThisMessage {
|
| 8601 | get { return this; }
|
| 8602 | }
|
| 8603 |
|
| 8604 | public const int AFieldNumber = 47;
|
| 8605 | private bool hasA;
|
| 8606 | private int a_ = 0;
|
| 8607 | public bool HasA {
|
| 8608 | get { return hasA; }
|
| 8609 | }
|
| 8610 | public int A {
|
| 8611 | get { return a_; }
|
| 8612 | }
|
| 8613 |
|
| 8614 | public override bool IsInitialized {
|
| 8615 | get {
|
| 8616 | return true;
|
| 8617 | }
|
| 8618 | }
|
| 8619 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8620 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8621 | int size = SerializedSize;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8622 | if (hasA) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 8623 | output.WriteInt32(47, "a", A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8624 | }
|
| 8625 | }
|
| 8626 |
|
| 8627 | private int memoizedSerializedSize = -1;
|
| 8628 | public override int SerializedSize {
|
| 8629 | get {
|
| 8630 | int size = memoizedSerializedSize;
|
| 8631 | if (size != -1) return size;
|
| 8632 |
|
| 8633 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8634 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8635 | size += pb::CodedOutputStream.ComputeInt32Size(47, A);
|
| 8636 | }
|
| 8637 | memoizedSerializedSize = size;
|
| 8638 | return size;
|
| 8639 | }
|
| 8640 | }
|
| 8641 |
|
| 8642 | #region Lite runtime methods
|
| 8643 | public override int GetHashCode() {
|
| 8644 | int hash = GetType().GetHashCode();
|
| 8645 | if (hasA) hash ^= a_.GetHashCode();
|
| 8646 | return hash;
|
| 8647 | }
|
| 8648 |
|
| 8649 | public override bool Equals(object obj) {
|
| 8650 | RepeatedGroup_extension_lite other = obj as RepeatedGroup_extension_lite;
|
| 8651 | if (other == null) return false;
|
| 8652 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 8653 | return true;
|
| 8654 | }
|
| 8655 |
|
| 8656 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8657 | PrintField("a", hasA, a_, writer);
|
| 8658 | }
|
| 8659 | #endregion
|
| 8660 |
|
| 8661 | public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data) {
|
| 8662 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8663 | }
|
| 8664 | public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8665 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8666 | }
|
| 8667 | public static RepeatedGroup_extension_lite ParseFrom(byte[] data) {
|
| 8668 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8669 | }
|
| 8670 | public static RepeatedGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 8671 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8672 | }
|
| 8673 | public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
|
| 8674 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8675 | }
|
| 8676 | public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8677 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8678 | }
|
| 8679 | public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 8680 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 8681 | }
|
| 8682 | public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8683 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 8684 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8685 | public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8686 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8687 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8688 | public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8689 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8690 | }
|
| 8691 | public static Builder CreateBuilder() { return new Builder(); }
|
| 8692 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 8693 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 8694 | public static Builder CreateBuilder(RepeatedGroup_extension_lite prototype) {
|
| 8695 | return (Builder) new Builder().MergeFrom(prototype);
|
| 8696 | }
|
| 8697 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8698 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8699 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8700 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8701 | public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup_extension_lite, Builder> {
|
| 8702 | protected override Builder ThisBuilder {
|
| 8703 | get { return this; }
|
| 8704 | }
|
| 8705 | public Builder() {}
|
| 8706 |
|
| 8707 | RepeatedGroup_extension_lite result = new RepeatedGroup_extension_lite();
|
| 8708 |
|
| 8709 | protected override RepeatedGroup_extension_lite MessageBeingBuilt {
|
| 8710 | get { return result; }
|
| 8711 | }
|
| 8712 |
|
| 8713 | public override Builder Clear() {
|
| 8714 | result = new RepeatedGroup_extension_lite();
|
| 8715 | return this;
|
| 8716 | }
|
| 8717 |
|
| 8718 | public override Builder Clone() {
|
| 8719 | return new Builder().MergeFrom(result);
|
| 8720 | }
|
| 8721 |
|
| 8722 | public override RepeatedGroup_extension_lite DefaultInstanceForType {
|
| 8723 | get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance; }
|
| 8724 | }
|
| 8725 |
|
| 8726 | public override RepeatedGroup_extension_lite BuildPartial() {
|
| 8727 | if (result == null) {
|
| 8728 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 8729 | }
|
| 8730 | RepeatedGroup_extension_lite returnMe = result;
|
| 8731 | result = null;
|
| 8732 | return returnMe;
|
| 8733 | }
|
| 8734 |
|
| 8735 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 8736 | if (other is RepeatedGroup_extension_lite) {
|
| 8737 | return MergeFrom((RepeatedGroup_extension_lite) other);
|
| 8738 | } else {
|
| 8739 | base.MergeFrom(other);
|
| 8740 | return this;
|
| 8741 | }
|
| 8742 | }
|
| 8743 |
|
| 8744 | public override Builder MergeFrom(RepeatedGroup_extension_lite other) {
|
| 8745 | if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance) return this;
|
| 8746 | if (other.HasA) {
|
| 8747 | A = other.A;
|
| 8748 | }
|
| 8749 | return this;
|
| 8750 | }
|
| 8751 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8752 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8753 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 8754 | }
|
| 8755 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8756 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8757 | uint tag;
|
| 8758 | string field_name;
|
| 8759 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8760 | switch (tag) {
|
| 8761 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 8762 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8763 | }
|
| 8764 | default: {
|
| 8765 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 8766 | return this;
|
| 8767 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8768 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8769 | break;
|
| 8770 | }
|
| 8771 | case 376: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8772 | result.hasA |= input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8773 | break;
|
| 8774 | }
|
| 8775 | }
|
| 8776 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8777 |
|
| 8778 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8779 | }
|
| 8780 |
|
| 8781 |
|
| 8782 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8783 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8784 | }
|
| 8785 | public int A {
|
| 8786 | get { return result.A; }
|
| 8787 | set { SetA(value); }
|
| 8788 | }
|
| 8789 | public Builder SetA(int value) {
|
| 8790 | result.hasA = true;
|
| 8791 | result.a_ = value;
|
| 8792 | return this;
|
| 8793 | }
|
| 8794 | public Builder ClearA() {
|
| 8795 | result.hasA = false;
|
| 8796 | result.a_ = 0;
|
| 8797 | return this;
|
| 8798 | }
|
| 8799 | }
|
| 8800 | static RepeatedGroup_extension_lite() {
|
| 8801 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8802 | }
|
| 8803 | }
|
| 8804 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8805 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8806 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8807 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8808 | public sealed partial class TestPackedExtensionsLite : pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder> {
|
| 8809 | private static readonly TestPackedExtensionsLite defaultInstance = new Builder().BuildPartial();
|
| 8810 | public static TestPackedExtensionsLite DefaultInstance {
|
| 8811 | get { return defaultInstance; }
|
| 8812 | }
|
| 8813 |
|
| 8814 | public override TestPackedExtensionsLite DefaultInstanceForType {
|
| 8815 | get { return defaultInstance; }
|
| 8816 | }
|
| 8817 |
|
| 8818 | protected override TestPackedExtensionsLite ThisMessage {
|
| 8819 | get { return this; }
|
| 8820 | }
|
| 8821 |
|
| 8822 | public override bool IsInitialized {
|
| 8823 | get {
|
| 8824 | if (!ExtensionsAreInitialized) return false;
|
| 8825 | return true;
|
| 8826 | }
|
| 8827 | }
|
| 8828 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8829 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8830 | int size = SerializedSize;
|
| 8831 | pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
|
| 8832 | extensionWriter.WriteUntil(536870912, output);
|
| 8833 | }
|
| 8834 |
|
| 8835 | private int memoizedSerializedSize = -1;
|
| 8836 | public override int SerializedSize {
|
| 8837 | get {
|
| 8838 | int size = memoizedSerializedSize;
|
| 8839 | if (size != -1) return size;
|
| 8840 |
|
| 8841 | size = 0;
|
| 8842 | size += ExtensionsSerializedSize;
|
| 8843 | memoizedSerializedSize = size;
|
| 8844 | return size;
|
| 8845 | }
|
| 8846 | }
|
| 8847 |
|
| 8848 | #region Lite runtime methods
|
| 8849 | public override int GetHashCode() {
|
| 8850 | int hash = GetType().GetHashCode();
|
| 8851 | hash ^= base.GetHashCode();
|
| 8852 | return hash;
|
| 8853 | }
|
| 8854 |
|
| 8855 | public override bool Equals(object obj) {
|
| 8856 | TestPackedExtensionsLite other = obj as TestPackedExtensionsLite;
|
| 8857 | if (other == null) return false;
|
| 8858 | if (!base.Equals(other)) return false;
|
| 8859 | return true;
|
| 8860 | }
|
| 8861 |
|
| 8862 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8863 | base.PrintTo(writer);
|
| 8864 | }
|
| 8865 | #endregion
|
| 8866 |
|
| 8867 | public static TestPackedExtensionsLite ParseFrom(pb::ByteString data) {
|
| 8868 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8869 | }
|
| 8870 | public static TestPackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8871 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8872 | }
|
| 8873 | public static TestPackedExtensionsLite ParseFrom(byte[] data) {
|
| 8874 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8875 | }
|
| 8876 | public static TestPackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 8877 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8878 | }
|
| 8879 | public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
|
| 8880 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8881 | }
|
| 8882 | public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8883 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8884 | }
|
| 8885 | public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 8886 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 8887 | }
|
| 8888 | public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8889 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 8890 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8891 | public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8892 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8893 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8894 | public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8895 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8896 | }
|
| 8897 | public static Builder CreateBuilder() { return new Builder(); }
|
| 8898 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 8899 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 8900 | public static Builder CreateBuilder(TestPackedExtensionsLite prototype) {
|
| 8901 | return (Builder) new Builder().MergeFrom(prototype);
|
| 8902 | }
|
| 8903 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8904 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8905 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8906 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8907 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestPackedExtensionsLite, Builder> {
|
| 8908 | protected override Builder ThisBuilder {
|
| 8909 | get { return this; }
|
| 8910 | }
|
| 8911 | public Builder() {}
|
| 8912 |
|
| 8913 | TestPackedExtensionsLite result = new TestPackedExtensionsLite();
|
| 8914 |
|
| 8915 | protected override TestPackedExtensionsLite MessageBeingBuilt {
|
| 8916 | get { return result; }
|
| 8917 | }
|
| 8918 |
|
| 8919 | public override Builder Clear() {
|
| 8920 | result = new TestPackedExtensionsLite();
|
| 8921 | return this;
|
| 8922 | }
|
| 8923 |
|
| 8924 | public override Builder Clone() {
|
| 8925 | return new Builder().MergeFrom(result);
|
| 8926 | }
|
| 8927 |
|
| 8928 | public override TestPackedExtensionsLite DefaultInstanceForType {
|
| 8929 | get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance; }
|
| 8930 | }
|
| 8931 |
|
| 8932 | public override TestPackedExtensionsLite BuildPartial() {
|
| 8933 | if (result == null) {
|
| 8934 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 8935 | }
|
| 8936 | TestPackedExtensionsLite returnMe = result;
|
| 8937 | result = null;
|
| 8938 | return returnMe;
|
| 8939 | }
|
| 8940 |
|
| 8941 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 8942 | if (other is TestPackedExtensionsLite) {
|
| 8943 | return MergeFrom((TestPackedExtensionsLite) other);
|
| 8944 | } else {
|
| 8945 | base.MergeFrom(other);
|
| 8946 | return this;
|
| 8947 | }
|
| 8948 | }
|
| 8949 |
|
| 8950 | public override Builder MergeFrom(TestPackedExtensionsLite other) {
|
| 8951 | if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance) return this;
|
| 8952 | this.MergeExtensionFields(other);
|
| 8953 | return this;
|
| 8954 | }
|
| 8955 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8956 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8957 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 8958 | }
|
| 8959 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8960 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8961 | uint tag;
|
| 8962 | string field_name;
|
| 8963 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8964 | switch (tag) {
|
| 8965 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 8966 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8967 | }
|
| 8968 | default: {
|
| 8969 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 8970 | return this;
|
| 8971 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8972 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8973 | break;
|
| 8974 | }
|
| 8975 | }
|
| 8976 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8977 |
|
| 8978 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8979 | }
|
| 8980 |
|
| 8981 | }
|
| 8982 | static TestPackedExtensionsLite() {
|
| 8983 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8984 | }
|
| 8985 | }
|
| 8986 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8987 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8988 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8989 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 8990 | public sealed partial class TestUnpackedExtensionsLite : pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder> {
|
| 8991 | private static readonly TestUnpackedExtensionsLite defaultInstance = new Builder().BuildPartial();
|
| 8992 | public static TestUnpackedExtensionsLite DefaultInstance {
|
| 8993 | get { return defaultInstance; }
|
| 8994 | }
|
| 8995 |
|
| 8996 | public override TestUnpackedExtensionsLite DefaultInstanceForType {
|
| 8997 | get { return defaultInstance; }
|
| 8998 | }
|
| 8999 |
|
| 9000 | protected override TestUnpackedExtensionsLite ThisMessage {
|
| 9001 | get { return this; }
|
| 9002 | }
|
| 9003 |
|
| 9004 | public override bool IsInitialized {
|
| 9005 | get {
|
| 9006 | if (!ExtensionsAreInitialized) return false;
|
| 9007 | return true;
|
| 9008 | }
|
| 9009 | }
|
| 9010 |
|
| 9011 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 9012 | int size = SerializedSize;
|
| 9013 | pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
|
| 9014 | extensionWriter.WriteUntil(536870912, output);
|
| 9015 | }
|
| 9016 |
|
| 9017 | private int memoizedSerializedSize = -1;
|
| 9018 | public override int SerializedSize {
|
| 9019 | get {
|
| 9020 | int size = memoizedSerializedSize;
|
| 9021 | if (size != -1) return size;
|
| 9022 |
|
| 9023 | size = 0;
|
| 9024 | size += ExtensionsSerializedSize;
|
| 9025 | memoizedSerializedSize = size;
|
| 9026 | return size;
|
| 9027 | }
|
| 9028 | }
|
| 9029 |
|
| 9030 | #region Lite runtime methods
|
| 9031 | public override int GetHashCode() {
|
| 9032 | int hash = GetType().GetHashCode();
|
| 9033 | hash ^= base.GetHashCode();
|
| 9034 | return hash;
|
| 9035 | }
|
| 9036 |
|
| 9037 | public override bool Equals(object obj) {
|
| 9038 | TestUnpackedExtensionsLite other = obj as TestUnpackedExtensionsLite;
|
| 9039 | if (other == null) return false;
|
| 9040 | if (!base.Equals(other)) return false;
|
| 9041 | return true;
|
| 9042 | }
|
| 9043 |
|
| 9044 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 9045 | base.PrintTo(writer);
|
| 9046 | }
|
| 9047 | #endregion
|
| 9048 |
|
| 9049 | public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data) {
|
| 9050 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9051 | }
|
| 9052 | public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 9053 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9054 | }
|
| 9055 | public static TestUnpackedExtensionsLite ParseFrom(byte[] data) {
|
| 9056 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9057 | }
|
| 9058 | public static TestUnpackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 9059 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9060 | }
|
| 9061 | public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
|
| 9062 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9063 | }
|
| 9064 | public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9065 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9066 | }
|
| 9067 | public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 9068 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 9069 | }
|
| 9070 | public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9071 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 9072 | }
|
| 9073 | public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
|
| 9074 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9075 | }
|
| 9076 | public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9077 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9078 | }
|
| 9079 | public static Builder CreateBuilder() { return new Builder(); }
|
| 9080 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 9081 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 9082 | public static Builder CreateBuilder(TestUnpackedExtensionsLite prototype) {
|
| 9083 | return (Builder) new Builder().MergeFrom(prototype);
|
| 9084 | }
|
| 9085 |
|
| 9086 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9087 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9088 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 9089 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestUnpackedExtensionsLite, Builder> {
|
| 9090 | protected override Builder ThisBuilder {
|
| 9091 | get { return this; }
|
| 9092 | }
|
| 9093 | public Builder() {}
|
| 9094 |
|
| 9095 | TestUnpackedExtensionsLite result = new TestUnpackedExtensionsLite();
|
| 9096 |
|
| 9097 | protected override TestUnpackedExtensionsLite MessageBeingBuilt {
|
| 9098 | get { return result; }
|
| 9099 | }
|
| 9100 |
|
| 9101 | public override Builder Clear() {
|
| 9102 | result = new TestUnpackedExtensionsLite();
|
| 9103 | return this;
|
| 9104 | }
|
| 9105 |
|
| 9106 | public override Builder Clone() {
|
| 9107 | return new Builder().MergeFrom(result);
|
| 9108 | }
|
| 9109 |
|
| 9110 | public override TestUnpackedExtensionsLite DefaultInstanceForType {
|
| 9111 | get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance; }
|
| 9112 | }
|
| 9113 |
|
| 9114 | public override TestUnpackedExtensionsLite BuildPartial() {
|
| 9115 | if (result == null) {
|
| 9116 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 9117 | }
|
| 9118 | TestUnpackedExtensionsLite returnMe = result;
|
| 9119 | result = null;
|
| 9120 | return returnMe;
|
| 9121 | }
|
| 9122 |
|
| 9123 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 9124 | if (other is TestUnpackedExtensionsLite) {
|
| 9125 | return MergeFrom((TestUnpackedExtensionsLite) other);
|
| 9126 | } else {
|
| 9127 | base.MergeFrom(other);
|
| 9128 | return this;
|
| 9129 | }
|
| 9130 | }
|
| 9131 |
|
| 9132 | public override Builder MergeFrom(TestUnpackedExtensionsLite other) {
|
| 9133 | if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance) return this;
|
| 9134 | this.MergeExtensionFields(other);
|
| 9135 | return this;
|
| 9136 | }
|
| 9137 |
|
| 9138 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 9139 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 9140 | }
|
| 9141 |
|
| 9142 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9143 | uint tag;
|
| 9144 | string field_name;
|
| 9145 | while (input.ReadTag(out tag, out field_name)) {
|
| 9146 | switch (tag) {
|
| 9147 | case 0: {
|
| 9148 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 9149 | }
|
| 9150 | default: {
|
| 9151 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 9152 | return this;
|
| 9153 | }
|
| 9154 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 9155 | break;
|
| 9156 | }
|
| 9157 | }
|
| 9158 | }
|
| 9159 |
|
| 9160 | return this;
|
| 9161 | }
|
| 9162 |
|
| 9163 | }
|
| 9164 | static TestUnpackedExtensionsLite() {
|
| 9165 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 9166 | }
|
| 9167 | }
|
| 9168 |
|
| 9169 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9170 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9171 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9172 | public sealed partial class TestNestedExtensionLite : pb::GeneratedMessageLite<TestNestedExtensionLite, TestNestedExtensionLite.Builder> {
|
| 9173 | private static readonly TestNestedExtensionLite defaultInstance = new Builder().BuildPartial();
|
| 9174 | public static TestNestedExtensionLite DefaultInstance {
|
| 9175 | get { return defaultInstance; }
|
| 9176 | }
|
| 9177 |
|
| 9178 | public override TestNestedExtensionLite DefaultInstanceForType {
|
| 9179 | get { return defaultInstance; }
|
| 9180 | }
|
| 9181 |
|
| 9182 | protected override TestNestedExtensionLite ThisMessage {
|
| 9183 | get { return this; }
|
| 9184 | }
|
| 9185 |
|
| 9186 | public const int NestedExtensionFieldNumber = 12345;
|
| 9187 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> NestedExtension;
|
| 9188 | public override bool IsInitialized {
|
| 9189 | get {
|
| 9190 | return true;
|
| 9191 | }
|
| 9192 | }
|
| 9193 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 9194 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9195 | int size = SerializedSize;
|
| 9196 | }
|
| 9197 |
|
| 9198 | private int memoizedSerializedSize = -1;
|
| 9199 | public override int SerializedSize {
|
| 9200 | get {
|
| 9201 | int size = memoizedSerializedSize;
|
| 9202 | if (size != -1) return size;
|
| 9203 |
|
| 9204 | size = 0;
|
| 9205 | memoizedSerializedSize = size;
|
| 9206 | return size;
|
| 9207 | }
|
| 9208 | }
|
| 9209 |
|
| 9210 | #region Lite runtime methods
|
| 9211 | public override int GetHashCode() {
|
| 9212 | int hash = GetType().GetHashCode();
|
| 9213 | return hash;
|
| 9214 | }
|
| 9215 |
|
| 9216 | public override bool Equals(object obj) {
|
| 9217 | TestNestedExtensionLite other = obj as TestNestedExtensionLite;
|
| 9218 | if (other == null) return false;
|
| 9219 | return true;
|
| 9220 | }
|
| 9221 |
|
| 9222 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 9223 | }
|
| 9224 | #endregion
|
| 9225 |
|
| 9226 | public static TestNestedExtensionLite ParseFrom(pb::ByteString data) {
|
| 9227 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9228 | }
|
| 9229 | public static TestNestedExtensionLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 9230 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9231 | }
|
| 9232 | public static TestNestedExtensionLite ParseFrom(byte[] data) {
|
| 9233 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9234 | }
|
| 9235 | public static TestNestedExtensionLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 9236 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9237 | }
|
| 9238 | public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input) {
|
| 9239 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9240 | }
|
| 9241 | public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9242 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9243 | }
|
| 9244 | public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 9245 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 9246 | }
|
| 9247 | public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9248 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 9249 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9250 | public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9251 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9252 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9253 | public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9254 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9255 | }
|
| 9256 | public static Builder CreateBuilder() { return new Builder(); }
|
| 9257 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 9258 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 9259 | public static Builder CreateBuilder(TestNestedExtensionLite prototype) {
|
| 9260 | return (Builder) new Builder().MergeFrom(prototype);
|
| 9261 | }
|
| 9262 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9263 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9264 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9265 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9266 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestNestedExtensionLite, Builder> {
|
| 9267 | protected override Builder ThisBuilder {
|
| 9268 | get { return this; }
|
| 9269 | }
|
| 9270 | public Builder() {}
|
| 9271 |
|
| 9272 | TestNestedExtensionLite result = new TestNestedExtensionLite();
|
| 9273 |
|
| 9274 | protected override TestNestedExtensionLite MessageBeingBuilt {
|
| 9275 | get { return result; }
|
| 9276 | }
|
| 9277 |
|
| 9278 | public override Builder Clear() {
|
| 9279 | result = new TestNestedExtensionLite();
|
| 9280 | return this;
|
| 9281 | }
|
| 9282 |
|
| 9283 | public override Builder Clone() {
|
| 9284 | return new Builder().MergeFrom(result);
|
| 9285 | }
|
| 9286 |
|
| 9287 | public override TestNestedExtensionLite DefaultInstanceForType {
|
| 9288 | get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance; }
|
| 9289 | }
|
| 9290 |
|
| 9291 | public override TestNestedExtensionLite BuildPartial() {
|
| 9292 | if (result == null) {
|
| 9293 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 9294 | }
|
| 9295 | TestNestedExtensionLite returnMe = result;
|
| 9296 | result = null;
|
| 9297 | return returnMe;
|
| 9298 | }
|
| 9299 |
|
| 9300 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 9301 | if (other is TestNestedExtensionLite) {
|
| 9302 | return MergeFrom((TestNestedExtensionLite) other);
|
| 9303 | } else {
|
| 9304 | base.MergeFrom(other);
|
| 9305 | return this;
|
| 9306 | }
|
| 9307 | }
|
| 9308 |
|
| 9309 | public override Builder MergeFrom(TestNestedExtensionLite other) {
|
| 9310 | if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance) return this;
|
| 9311 | return this;
|
| 9312 | }
|
| 9313 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9314 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9315 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 9316 | }
|
| 9317 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9318 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9319 | uint tag;
|
| 9320 | string field_name;
|
| 9321 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9322 | switch (tag) {
|
| 9323 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 9324 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9325 | }
|
| 9326 | default: {
|
| 9327 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 9328 | return this;
|
| 9329 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 9330 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9331 | break;
|
| 9332 | }
|
| 9333 | }
|
| 9334 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9335 |
|
| 9336 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9337 | }
|
| 9338 |
|
| 9339 | }
|
| 9340 | static TestNestedExtensionLite() {
|
| 9341 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 9342 | }
|
| 9343 | }
|
| 9344 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9345 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9346 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9347 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9348 | public sealed partial class TestDeprecatedLite : pb::GeneratedMessageLite<TestDeprecatedLite, TestDeprecatedLite.Builder> {
|
| 9349 | private static readonly TestDeprecatedLite defaultInstance = new Builder().BuildPartial();
|
| 9350 | public static TestDeprecatedLite DefaultInstance {
|
| 9351 | get { return defaultInstance; }
|
| 9352 | }
|
| 9353 |
|
| 9354 | public override TestDeprecatedLite DefaultInstanceForType {
|
| 9355 | get { return defaultInstance; }
|
| 9356 | }
|
| 9357 |
|
| 9358 | protected override TestDeprecatedLite ThisMessage {
|
| 9359 | get { return this; }
|
| 9360 | }
|
| 9361 |
|
| 9362 | public const int DeprecatedFieldFieldNumber = 1;
|
| 9363 | private bool hasDeprecatedField;
|
| 9364 | private int deprecatedField_ = 0;
|
| 9365 | public bool HasDeprecatedField {
|
| 9366 | get { return hasDeprecatedField; }
|
| 9367 | }
|
| 9368 | public int DeprecatedField {
|
| 9369 | get { return deprecatedField_; }
|
| 9370 | }
|
| 9371 |
|
| 9372 | public override bool IsInitialized {
|
| 9373 | get {
|
| 9374 | return true;
|
| 9375 | }
|
| 9376 | }
|
| 9377 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 9378 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9379 | int size = SerializedSize;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 9380 | if (hasDeprecatedField) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 9381 | output.WriteInt32(1, "deprecated_field", DeprecatedField);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9382 | }
|
| 9383 | }
|
| 9384 |
|
| 9385 | private int memoizedSerializedSize = -1;
|
| 9386 | public override int SerializedSize {
|
| 9387 | get {
|
| 9388 | int size = memoizedSerializedSize;
|
| 9389 | if (size != -1) return size;
|
| 9390 |
|
| 9391 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 9392 | if (hasDeprecatedField) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9393 | size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedField);
|
| 9394 | }
|
| 9395 | memoizedSerializedSize = size;
|
| 9396 | return size;
|
| 9397 | }
|
| 9398 | }
|
| 9399 |
|
| 9400 | #region Lite runtime methods
|
| 9401 | public override int GetHashCode() {
|
| 9402 | int hash = GetType().GetHashCode();
|
| 9403 | if (hasDeprecatedField) hash ^= deprecatedField_.GetHashCode();
|
| 9404 | return hash;
|
| 9405 | }
|
| 9406 |
|
| 9407 | public override bool Equals(object obj) {
|
| 9408 | TestDeprecatedLite other = obj as TestDeprecatedLite;
|
| 9409 | if (other == null) return false;
|
| 9410 | if (hasDeprecatedField != other.hasDeprecatedField || (hasDeprecatedField && !deprecatedField_.Equals(other.deprecatedField_))) return false;
|
| 9411 | return true;
|
| 9412 | }
|
| 9413 |
|
| 9414 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 9415 | PrintField("deprecated_field", hasDeprecatedField, deprecatedField_, writer);
|
| 9416 | }
|
| 9417 | #endregion
|
| 9418 |
|
| 9419 | public static TestDeprecatedLite ParseFrom(pb::ByteString data) {
|
| 9420 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9421 | }
|
| 9422 | public static TestDeprecatedLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 9423 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9424 | }
|
| 9425 | public static TestDeprecatedLite ParseFrom(byte[] data) {
|
| 9426 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9427 | }
|
| 9428 | public static TestDeprecatedLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 9429 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9430 | }
|
| 9431 | public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input) {
|
| 9432 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9433 | }
|
| 9434 | public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9435 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9436 | }
|
| 9437 | public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 9438 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 9439 | }
|
| 9440 | public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9441 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 9442 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9443 | public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9444 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9445 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9446 | public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9447 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9448 | }
|
| 9449 | public static Builder CreateBuilder() { return new Builder(); }
|
| 9450 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 9451 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 9452 | public static Builder CreateBuilder(TestDeprecatedLite prototype) {
|
| 9453 | return (Builder) new Builder().MergeFrom(prototype);
|
| 9454 | }
|
| 9455 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9456 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9457 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9458 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9459 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestDeprecatedLite, Builder> {
|
| 9460 | protected override Builder ThisBuilder {
|
| 9461 | get { return this; }
|
| 9462 | }
|
| 9463 | public Builder() {}
|
| 9464 |
|
| 9465 | TestDeprecatedLite result = new TestDeprecatedLite();
|
| 9466 |
|
| 9467 | protected override TestDeprecatedLite MessageBeingBuilt {
|
| 9468 | get { return result; }
|
| 9469 | }
|
| 9470 |
|
| 9471 | public override Builder Clear() {
|
| 9472 | result = new TestDeprecatedLite();
|
| 9473 | return this;
|
| 9474 | }
|
| 9475 |
|
| 9476 | public override Builder Clone() {
|
| 9477 | return new Builder().MergeFrom(result);
|
| 9478 | }
|
| 9479 |
|
| 9480 | public override TestDeprecatedLite DefaultInstanceForType {
|
| 9481 | get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance; }
|
| 9482 | }
|
| 9483 |
|
| 9484 | public override TestDeprecatedLite BuildPartial() {
|
| 9485 | if (result == null) {
|
| 9486 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 9487 | }
|
| 9488 | TestDeprecatedLite returnMe = result;
|
| 9489 | result = null;
|
| 9490 | return returnMe;
|
| 9491 | }
|
| 9492 |
|
| 9493 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 9494 | if (other is TestDeprecatedLite) {
|
| 9495 | return MergeFrom((TestDeprecatedLite) other);
|
| 9496 | } else {
|
| 9497 | base.MergeFrom(other);
|
| 9498 | return this;
|
| 9499 | }
|
| 9500 | }
|
| 9501 |
|
| 9502 | public override Builder MergeFrom(TestDeprecatedLite other) {
|
| 9503 | if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance) return this;
|
| 9504 | if (other.HasDeprecatedField) {
|
| 9505 | DeprecatedField = other.DeprecatedField;
|
| 9506 | }
|
| 9507 | return this;
|
| 9508 | }
|
| 9509 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9510 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9511 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 9512 | }
|
| 9513 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9514 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9515 | uint tag;
|
| 9516 | string field_name;
|
| 9517 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9518 | switch (tag) {
|
| 9519 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 9520 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9521 | }
|
| 9522 | default: {
|
| 9523 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 9524 | return this;
|
| 9525 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 9526 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9527 | break;
|
| 9528 | }
|
| 9529 | case 8: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 9530 | result.hasDeprecatedField |= input.ReadInt32(ref result.deprecatedField_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9531 | break;
|
| 9532 | }
|
| 9533 | }
|
| 9534 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9535 |
|
| 9536 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9537 | }
|
| 9538 |
|
| 9539 |
|
| 9540 | public bool HasDeprecatedField {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 9541 | get { return result.hasDeprecatedField; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9542 | }
|
| 9543 | public int DeprecatedField {
|
| 9544 | get { return result.DeprecatedField; }
|
| 9545 | set { SetDeprecatedField(value); }
|
| 9546 | }
|
| 9547 | public Builder SetDeprecatedField(int value) {
|
| 9548 | result.hasDeprecatedField = true;
|
| 9549 | result.deprecatedField_ = value;
|
| 9550 | return this;
|
| 9551 | }
|
| 9552 | public Builder ClearDeprecatedField() {
|
| 9553 | result.hasDeprecatedField = false;
|
| 9554 | result.deprecatedField_ = 0;
|
| 9555 | return this;
|
| 9556 | }
|
| 9557 | }
|
| 9558 | static TestDeprecatedLite() {
|
| 9559 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 9560 | }
|
| 9561 | }
|
| 9562 |
|
| 9563 | #endregion
|
| 9564 |
|
| 9565 | }
|