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);
|
| 98 | registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension);
|
| 99 | }
|
| 100 | #endregion
|
| 101 | #region Extensions
|
| 102 | public const int OptionalInt32ExtensionLiteFieldNumber = 1;
|
| 103 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalInt32ExtensionLite;
|
| 104 | public const int OptionalInt64ExtensionLiteFieldNumber = 2;
|
| 105 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalInt64ExtensionLite;
|
| 106 | public const int OptionalUint32ExtensionLiteFieldNumber = 3;
|
| 107 | [global::System.CLSCompliant(false)]
|
| 108 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalUint32ExtensionLite;
|
| 109 | public const int OptionalUint64ExtensionLiteFieldNumber = 4;
|
| 110 | [global::System.CLSCompliant(false)]
|
| 111 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalUint64ExtensionLite;
|
| 112 | public const int OptionalSint32ExtensionLiteFieldNumber = 5;
|
| 113 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSint32ExtensionLite;
|
| 114 | public const int OptionalSint64ExtensionLiteFieldNumber = 6;
|
| 115 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSint64ExtensionLite;
|
| 116 | public const int OptionalFixed32ExtensionLiteFieldNumber = 7;
|
| 117 | [global::System.CLSCompliant(false)]
|
| 118 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalFixed32ExtensionLite;
|
| 119 | public const int OptionalFixed64ExtensionLiteFieldNumber = 8;
|
| 120 | [global::System.CLSCompliant(false)]
|
| 121 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalFixed64ExtensionLite;
|
| 122 | public const int OptionalSfixed32ExtensionLiteFieldNumber = 9;
|
| 123 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSfixed32ExtensionLite;
|
| 124 | public const int OptionalSfixed64ExtensionLiteFieldNumber = 10;
|
| 125 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSfixed64ExtensionLite;
|
| 126 | public const int OptionalFloatExtensionLiteFieldNumber = 11;
|
| 127 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> OptionalFloatExtensionLite;
|
| 128 | public const int OptionalDoubleExtensionLiteFieldNumber = 12;
|
| 129 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> OptionalDoubleExtensionLite;
|
| 130 | public const int OptionalBoolExtensionLiteFieldNumber = 13;
|
| 131 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> OptionalBoolExtensionLite;
|
| 132 | public const int OptionalStringExtensionLiteFieldNumber = 14;
|
| 133 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringExtensionLite;
|
| 134 | public const int OptionalBytesExtensionLiteFieldNumber = 15;
|
| 135 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> OptionalBytesExtensionLite;
|
| 136 | public const int OptionalGroupExtensionLiteFieldNumber = 16;
|
| 137 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite> OptionalGroupExtensionLite;
|
| 138 | public const int OptionalNestedMessageExtensionLiteFieldNumber = 18;
|
| 139 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> OptionalNestedMessageExtensionLite;
|
| 140 | public const int OptionalForeignMessageExtensionLiteFieldNumber = 19;
|
| 141 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> OptionalForeignMessageExtensionLite;
|
| 142 | public const int OptionalImportMessageExtensionLiteFieldNumber = 20;
|
| 143 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> OptionalImportMessageExtensionLite;
|
| 144 | public const int OptionalNestedEnumExtensionLiteFieldNumber = 21;
|
| 145 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> OptionalNestedEnumExtensionLite;
|
| 146 | public const int OptionalForeignEnumExtensionLiteFieldNumber = 22;
|
| 147 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> OptionalForeignEnumExtensionLite;
|
| 148 | public const int OptionalImportEnumExtensionLiteFieldNumber = 23;
|
| 149 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> OptionalImportEnumExtensionLite;
|
| 150 | public const int OptionalStringPieceExtensionLiteFieldNumber = 24;
|
| 151 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringPieceExtensionLite;
|
| 152 | public const int OptionalCordExtensionLiteFieldNumber = 25;
|
| 153 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalCordExtensionLite;
|
| 154 | public const int RepeatedInt32ExtensionLiteFieldNumber = 31;
|
| 155 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedInt32ExtensionLite;
|
| 156 | public const int RepeatedInt64ExtensionLiteFieldNumber = 32;
|
| 157 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedInt64ExtensionLite;
|
| 158 | public const int RepeatedUint32ExtensionLiteFieldNumber = 33;
|
| 159 | [global::System.CLSCompliant(false)]
|
| 160 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedUint32ExtensionLite;
|
| 161 | public const int RepeatedUint64ExtensionLiteFieldNumber = 34;
|
| 162 | [global::System.CLSCompliant(false)]
|
| 163 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedUint64ExtensionLite;
|
| 164 | public const int RepeatedSint32ExtensionLiteFieldNumber = 35;
|
| 165 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSint32ExtensionLite;
|
| 166 | public const int RepeatedSint64ExtensionLiteFieldNumber = 36;
|
| 167 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSint64ExtensionLite;
|
| 168 | public const int RepeatedFixed32ExtensionLiteFieldNumber = 37;
|
| 169 | [global::System.CLSCompliant(false)]
|
| 170 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedFixed32ExtensionLite;
|
| 171 | public const int RepeatedFixed64ExtensionLiteFieldNumber = 38;
|
| 172 | [global::System.CLSCompliant(false)]
|
| 173 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedFixed64ExtensionLite;
|
| 174 | public const int RepeatedSfixed32ExtensionLiteFieldNumber = 39;
|
| 175 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSfixed32ExtensionLite;
|
| 176 | public const int RepeatedSfixed64ExtensionLiteFieldNumber = 40;
|
| 177 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSfixed64ExtensionLite;
|
| 178 | public const int RepeatedFloatExtensionLiteFieldNumber = 41;
|
| 179 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> RepeatedFloatExtensionLite;
|
| 180 | public const int RepeatedDoubleExtensionLiteFieldNumber = 42;
|
| 181 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> RepeatedDoubleExtensionLite;
|
| 182 | public const int RepeatedBoolExtensionLiteFieldNumber = 43;
|
| 183 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> RepeatedBoolExtensionLite;
|
| 184 | public const int RepeatedStringExtensionLiteFieldNumber = 44;
|
| 185 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringExtensionLite;
|
| 186 | public const int RepeatedBytesExtensionLiteFieldNumber = 45;
|
| 187 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> RepeatedBytesExtensionLite;
|
| 188 | public const int RepeatedGroupExtensionLiteFieldNumber = 46;
|
| 189 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite> RepeatedGroupExtensionLite;
|
| 190 | public const int RepeatedNestedMessageExtensionLiteFieldNumber = 48;
|
| 191 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageExtensionLite;
|
| 192 | public const int RepeatedForeignMessageExtensionLiteFieldNumber = 49;
|
| 193 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageExtensionLite;
|
| 194 | public const int RepeatedImportMessageExtensionLiteFieldNumber = 50;
|
| 195 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageExtensionLite;
|
| 196 | public const int RepeatedNestedEnumExtensionLiteFieldNumber = 51;
|
| 197 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumExtensionLite;
|
| 198 | public const int RepeatedForeignEnumExtensionLiteFieldNumber = 52;
|
| 199 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumExtensionLite;
|
| 200 | public const int RepeatedImportEnumExtensionLiteFieldNumber = 53;
|
| 201 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumExtensionLite;
|
| 202 | public const int RepeatedStringPieceExtensionLiteFieldNumber = 54;
|
| 203 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringPieceExtensionLite;
|
| 204 | public const int RepeatedCordExtensionLiteFieldNumber = 55;
|
| 205 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedCordExtensionLite;
|
| 206 | public const int DefaultInt32ExtensionLiteFieldNumber = 61;
|
| 207 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultInt32ExtensionLite;
|
| 208 | public const int DefaultInt64ExtensionLiteFieldNumber = 62;
|
| 209 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultInt64ExtensionLite;
|
| 210 | public const int DefaultUint32ExtensionLiteFieldNumber = 63;
|
| 211 | [global::System.CLSCompliant(false)]
|
| 212 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultUint32ExtensionLite;
|
| 213 | public const int DefaultUint64ExtensionLiteFieldNumber = 64;
|
| 214 | [global::System.CLSCompliant(false)]
|
| 215 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultUint64ExtensionLite;
|
| 216 | public const int DefaultSint32ExtensionLiteFieldNumber = 65;
|
| 217 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSint32ExtensionLite;
|
| 218 | public const int DefaultSint64ExtensionLiteFieldNumber = 66;
|
| 219 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSint64ExtensionLite;
|
| 220 | public const int DefaultFixed32ExtensionLiteFieldNumber = 67;
|
| 221 | [global::System.CLSCompliant(false)]
|
| 222 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultFixed32ExtensionLite;
|
| 223 | public const int DefaultFixed64ExtensionLiteFieldNumber = 68;
|
| 224 | [global::System.CLSCompliant(false)]
|
| 225 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultFixed64ExtensionLite;
|
| 226 | public const int DefaultSfixed32ExtensionLiteFieldNumber = 69;
|
| 227 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSfixed32ExtensionLite;
|
| 228 | public const int DefaultSfixed64ExtensionLiteFieldNumber = 70;
|
| 229 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSfixed64ExtensionLite;
|
| 230 | public const int DefaultFloatExtensionLiteFieldNumber = 71;
|
| 231 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> DefaultFloatExtensionLite;
|
| 232 | public const int DefaultDoubleExtensionLiteFieldNumber = 72;
|
| 233 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> DefaultDoubleExtensionLite;
|
| 234 | public const int DefaultBoolExtensionLiteFieldNumber = 73;
|
| 235 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> DefaultBoolExtensionLite;
|
| 236 | public const int DefaultStringExtensionLiteFieldNumber = 74;
|
| 237 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringExtensionLite;
|
| 238 | public const int DefaultBytesExtensionLiteFieldNumber = 75;
|
| 239 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> DefaultBytesExtensionLite;
|
| 240 | public const int DefaultNestedEnumExtensionLiteFieldNumber = 81;
|
| 241 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> DefaultNestedEnumExtensionLite;
|
| 242 | public const int DefaultForeignEnumExtensionLiteFieldNumber = 82;
|
| 243 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> DefaultForeignEnumExtensionLite;
|
| 244 | public const int DefaultImportEnumExtensionLiteFieldNumber = 83;
|
| 245 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> DefaultImportEnumExtensionLite;
|
| 246 | public const int DefaultStringPieceExtensionLiteFieldNumber = 84;
|
| 247 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringPieceExtensionLite;
|
| 248 | public const int DefaultCordExtensionLiteFieldNumber = 85;
|
| 249 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultCordExtensionLite;
|
| 250 | public const int PackedInt32ExtensionLiteFieldNumber = 90;
|
| 251 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedInt32ExtensionLite;
|
| 252 | public const int PackedInt64ExtensionLiteFieldNumber = 91;
|
| 253 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedInt64ExtensionLite;
|
| 254 | public const int PackedUint32ExtensionLiteFieldNumber = 92;
|
| 255 | [global::System.CLSCompliant(false)]
|
| 256 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedUint32ExtensionLite;
|
| 257 | public const int PackedUint64ExtensionLiteFieldNumber = 93;
|
| 258 | [global::System.CLSCompliant(false)]
|
| 259 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedUint64ExtensionLite;
|
| 260 | public const int PackedSint32ExtensionLiteFieldNumber = 94;
|
| 261 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSint32ExtensionLite;
|
| 262 | public const int PackedSint64ExtensionLiteFieldNumber = 95;
|
| 263 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSint64ExtensionLite;
|
| 264 | public const int PackedFixed32ExtensionLiteFieldNumber = 96;
|
| 265 | [global::System.CLSCompliant(false)]
|
| 266 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedFixed32ExtensionLite;
|
| 267 | public const int PackedFixed64ExtensionLiteFieldNumber = 97;
|
| 268 | [global::System.CLSCompliant(false)]
|
| 269 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedFixed64ExtensionLite;
|
| 270 | public const int PackedSfixed32ExtensionLiteFieldNumber = 98;
|
| 271 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSfixed32ExtensionLite;
|
| 272 | public const int PackedSfixed64ExtensionLiteFieldNumber = 99;
|
| 273 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSfixed64ExtensionLite;
|
| 274 | public const int PackedFloatExtensionLiteFieldNumber = 100;
|
| 275 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float> PackedFloatExtensionLite;
|
| 276 | public const int PackedDoubleExtensionLiteFieldNumber = 101;
|
| 277 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double> PackedDoubleExtensionLite;
|
| 278 | public const int PackedBoolExtensionLiteFieldNumber = 102;
|
| 279 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool> PackedBoolExtensionLite;
|
| 280 | public const int PackedEnumExtensionLiteFieldNumber = 103;
|
| 281 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumExtensionLite;
|
| 282 | #endregion
|
| 283 |
|
| 284 | #region Static variables
|
| 285 | #endregion
|
| 286 | #region Extensions
|
| 287 | internal static readonly object Descriptor;
|
| 288 | static UnitTestLiteProtoFile() {
|
| 289 | Descriptor = null;
|
| 290 | global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension =
|
| 291 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 292 | "protobuf_unittest.TestNestedExtensionLite.nested_extension",
|
| 293 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 294 | default(int),
|
| 295 | null,
|
| 296 | null,
|
| 297 | global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtensionFieldNumber,
|
| 298 | pbd::FieldType.Int32);
|
| 299 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite =
|
| 300 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 301 | "protobuf_unittest.optional_int32_extension_lite",
|
| 302 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 303 | default(int),
|
| 304 | null,
|
| 305 | null,
|
| 306 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLiteFieldNumber,
|
| 307 | pbd::FieldType.Int32);
|
| 308 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite =
|
| 309 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 310 | "protobuf_unittest.optional_int64_extension_lite",
|
| 311 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 312 | default(long),
|
| 313 | null,
|
| 314 | null,
|
| 315 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLiteFieldNumber,
|
| 316 | pbd::FieldType.Int64);
|
| 317 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite =
|
| 318 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 319 | "protobuf_unittest.optional_uint32_extension_lite",
|
| 320 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 321 | default(uint),
|
| 322 | null,
|
| 323 | null,
|
| 324 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLiteFieldNumber,
|
| 325 | pbd::FieldType.UInt32);
|
| 326 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite =
|
| 327 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 328 | "protobuf_unittest.optional_uint64_extension_lite",
|
| 329 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 330 | default(ulong),
|
| 331 | null,
|
| 332 | null,
|
| 333 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLiteFieldNumber,
|
| 334 | pbd::FieldType.UInt64);
|
| 335 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite =
|
| 336 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 337 | "protobuf_unittest.optional_sint32_extension_lite",
|
| 338 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 339 | default(int),
|
| 340 | null,
|
| 341 | null,
|
| 342 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLiteFieldNumber,
|
| 343 | pbd::FieldType.SInt32);
|
| 344 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite =
|
| 345 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 346 | "protobuf_unittest.optional_sint64_extension_lite",
|
| 347 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 348 | default(long),
|
| 349 | null,
|
| 350 | null,
|
| 351 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLiteFieldNumber,
|
| 352 | pbd::FieldType.SInt64);
|
| 353 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite =
|
| 354 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 355 | "protobuf_unittest.optional_fixed32_extension_lite",
|
| 356 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 357 | default(uint),
|
| 358 | null,
|
| 359 | null,
|
| 360 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLiteFieldNumber,
|
| 361 | pbd::FieldType.Fixed32);
|
| 362 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite =
|
| 363 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 364 | "protobuf_unittest.optional_fixed64_extension_lite",
|
| 365 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 366 | default(ulong),
|
| 367 | null,
|
| 368 | null,
|
| 369 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLiteFieldNumber,
|
| 370 | pbd::FieldType.Fixed64);
|
| 371 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite =
|
| 372 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 373 | "protobuf_unittest.optional_sfixed32_extension_lite",
|
| 374 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 375 | default(int),
|
| 376 | null,
|
| 377 | null,
|
| 378 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLiteFieldNumber,
|
| 379 | pbd::FieldType.SFixed32);
|
| 380 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite =
|
| 381 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 382 | "protobuf_unittest.optional_sfixed64_extension_lite",
|
| 383 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 384 | default(long),
|
| 385 | null,
|
| 386 | null,
|
| 387 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLiteFieldNumber,
|
| 388 | pbd::FieldType.SFixed64);
|
| 389 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite =
|
| 390 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 391 | "protobuf_unittest.optional_float_extension_lite",
|
| 392 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 393 | default(float),
|
| 394 | null,
|
| 395 | null,
|
| 396 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLiteFieldNumber,
|
| 397 | pbd::FieldType.Float);
|
| 398 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite =
|
| 399 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 400 | "protobuf_unittest.optional_double_extension_lite",
|
| 401 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 402 | default(double),
|
| 403 | null,
|
| 404 | null,
|
| 405 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLiteFieldNumber,
|
| 406 | pbd::FieldType.Double);
|
| 407 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite =
|
| 408 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 409 | "protobuf_unittest.optional_bool_extension_lite",
|
| 410 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 411 | default(bool),
|
| 412 | null,
|
| 413 | null,
|
| 414 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLiteFieldNumber,
|
| 415 | pbd::FieldType.Bool);
|
| 416 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite =
|
| 417 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 418 | "protobuf_unittest.optional_string_extension_lite",
|
| 419 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 420 | null,
|
| 421 | null,
|
| 422 | null,
|
| 423 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLiteFieldNumber,
|
| 424 | pbd::FieldType.String);
|
| 425 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite =
|
| 426 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 427 | "protobuf_unittest.optional_bytes_extension_lite",
|
| 428 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 429 | null,
|
| 430 | null,
|
| 431 | null,
|
| 432 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLiteFieldNumber,
|
| 433 | pbd::FieldType.Bytes);
|
| 434 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite =
|
| 435 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite>(
|
| 436 | "protobuf_unittest.optionalgroup_extension_lite",
|
| 437 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 438 | null,
|
| 439 | global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance,
|
| 440 | null,
|
| 441 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLiteFieldNumber,
|
| 442 | pbd::FieldType.Group);
|
| 443 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite =
|
| 444 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
|
| 445 | "protobuf_unittest.optional_nested_message_extension_lite",
|
| 446 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 447 | null,
|
| 448 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
|
| 449 | null,
|
| 450 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLiteFieldNumber,
|
| 451 | pbd::FieldType.Message);
|
| 452 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite =
|
| 453 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
|
| 454 | "protobuf_unittest.optional_foreign_message_extension_lite",
|
| 455 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 456 | null,
|
| 457 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
|
| 458 | null,
|
| 459 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLiteFieldNumber,
|
| 460 | pbd::FieldType.Message);
|
| 461 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite =
|
| 462 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
|
| 463 | "protobuf_unittest.optional_import_message_extension_lite",
|
| 464 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 465 | null,
|
| 466 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
|
| 467 | null,
|
| 468 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLiteFieldNumber,
|
| 469 | pbd::FieldType.Message);
|
| 470 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite =
|
| 471 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 472 | "protobuf_unittest.optional_nested_enum_extension_lite",
|
| 473 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 474 | default(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum),
|
| 475 | null,
|
| 476 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 477 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLiteFieldNumber,
|
| 478 | pbd::FieldType.Enum);
|
| 479 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite =
|
| 480 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 481 | "protobuf_unittest.optional_foreign_enum_extension_lite",
|
| 482 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 483 | default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite),
|
| 484 | null,
|
| 485 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 486 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLiteFieldNumber,
|
| 487 | pbd::FieldType.Enum);
|
| 488 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite =
|
| 489 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 490 | "protobuf_unittest.optional_import_enum_extension_lite",
|
| 491 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 492 | default(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite),
|
| 493 | null,
|
| 494 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 495 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLiteFieldNumber,
|
| 496 | pbd::FieldType.Enum);
|
| 497 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite =
|
| 498 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 499 | "protobuf_unittest.optional_string_piece_extension_lite",
|
| 500 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 501 | null,
|
| 502 | null,
|
| 503 | null,
|
| 504 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLiteFieldNumber,
|
| 505 | pbd::FieldType.String);
|
| 506 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite =
|
| 507 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 508 | "protobuf_unittest.optional_cord_extension_lite",
|
| 509 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 510 | null,
|
| 511 | null,
|
| 512 | null,
|
| 513 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLiteFieldNumber,
|
| 514 | pbd::FieldType.String);
|
| 515 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite =
|
| 516 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 517 | "protobuf_unittest.repeated_int32_extension_lite",
|
| 518 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 519 | null,
|
| 520 | null,
|
| 521 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLiteFieldNumber,
|
| 522 | pbd::FieldType.Int32,
|
| 523 | false);
|
| 524 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite =
|
| 525 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 526 | "protobuf_unittest.repeated_int64_extension_lite",
|
| 527 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 528 | null,
|
| 529 | null,
|
| 530 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLiteFieldNumber,
|
| 531 | pbd::FieldType.Int64,
|
| 532 | false);
|
| 533 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite =
|
| 534 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 535 | "protobuf_unittest.repeated_uint32_extension_lite",
|
| 536 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 537 | null,
|
| 538 | null,
|
| 539 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLiteFieldNumber,
|
| 540 | pbd::FieldType.UInt32,
|
| 541 | false);
|
| 542 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite =
|
| 543 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 544 | "protobuf_unittest.repeated_uint64_extension_lite",
|
| 545 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 546 | null,
|
| 547 | null,
|
| 548 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLiteFieldNumber,
|
| 549 | pbd::FieldType.UInt64,
|
| 550 | false);
|
| 551 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite =
|
| 552 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 553 | "protobuf_unittest.repeated_sint32_extension_lite",
|
| 554 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 555 | null,
|
| 556 | null,
|
| 557 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLiteFieldNumber,
|
| 558 | pbd::FieldType.SInt32,
|
| 559 | false);
|
| 560 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite =
|
| 561 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 562 | "protobuf_unittest.repeated_sint64_extension_lite",
|
| 563 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 564 | null,
|
| 565 | null,
|
| 566 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLiteFieldNumber,
|
| 567 | pbd::FieldType.SInt64,
|
| 568 | false);
|
| 569 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite =
|
| 570 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 571 | "protobuf_unittest.repeated_fixed32_extension_lite",
|
| 572 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 573 | null,
|
| 574 | null,
|
| 575 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLiteFieldNumber,
|
| 576 | pbd::FieldType.Fixed32,
|
| 577 | false);
|
| 578 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite =
|
| 579 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 580 | "protobuf_unittest.repeated_fixed64_extension_lite",
|
| 581 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 582 | null,
|
| 583 | null,
|
| 584 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLiteFieldNumber,
|
| 585 | pbd::FieldType.Fixed64,
|
| 586 | false);
|
| 587 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite =
|
| 588 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 589 | "protobuf_unittest.repeated_sfixed32_extension_lite",
|
| 590 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 591 | null,
|
| 592 | null,
|
| 593 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLiteFieldNumber,
|
| 594 | pbd::FieldType.SFixed32,
|
| 595 | false);
|
| 596 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite =
|
| 597 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 598 | "protobuf_unittest.repeated_sfixed64_extension_lite",
|
| 599 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 600 | null,
|
| 601 | null,
|
| 602 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLiteFieldNumber,
|
| 603 | pbd::FieldType.SFixed64,
|
| 604 | false);
|
| 605 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite =
|
| 606 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 607 | "protobuf_unittest.repeated_float_extension_lite",
|
| 608 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 609 | null,
|
| 610 | null,
|
| 611 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLiteFieldNumber,
|
| 612 | pbd::FieldType.Float,
|
| 613 | false);
|
| 614 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite =
|
| 615 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 616 | "protobuf_unittest.repeated_double_extension_lite",
|
| 617 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 618 | null,
|
| 619 | null,
|
| 620 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLiteFieldNumber,
|
| 621 | pbd::FieldType.Double,
|
| 622 | false);
|
| 623 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite =
|
| 624 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 625 | "protobuf_unittest.repeated_bool_extension_lite",
|
| 626 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 627 | null,
|
| 628 | null,
|
| 629 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLiteFieldNumber,
|
| 630 | pbd::FieldType.Bool,
|
| 631 | false);
|
| 632 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite =
|
| 633 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 634 | "protobuf_unittest.repeated_string_extension_lite",
|
| 635 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 636 | null,
|
| 637 | null,
|
| 638 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLiteFieldNumber,
|
| 639 | pbd::FieldType.String,
|
| 640 | false);
|
| 641 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite =
|
| 642 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 643 | "protobuf_unittest.repeated_bytes_extension_lite",
|
| 644 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 645 | null,
|
| 646 | null,
|
| 647 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLiteFieldNumber,
|
| 648 | pbd::FieldType.Bytes,
|
| 649 | false);
|
| 650 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite =
|
| 651 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite>(
|
| 652 | "protobuf_unittest.repeatedgroup_extension_lite",
|
| 653 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 654 | global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance,
|
| 655 | null,
|
| 656 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLiteFieldNumber,
|
| 657 | pbd::FieldType.Group,
|
| 658 | false);
|
| 659 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite =
|
| 660 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
|
| 661 | "protobuf_unittest.repeated_nested_message_extension_lite",
|
| 662 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 663 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
|
| 664 | null,
|
| 665 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLiteFieldNumber,
|
| 666 | pbd::FieldType.Message,
|
| 667 | false);
|
| 668 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite =
|
| 669 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
|
| 670 | "protobuf_unittest.repeated_foreign_message_extension_lite",
|
| 671 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 672 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
|
| 673 | null,
|
| 674 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLiteFieldNumber,
|
| 675 | pbd::FieldType.Message,
|
| 676 | false);
|
| 677 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite =
|
| 678 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
|
| 679 | "protobuf_unittest.repeated_import_message_extension_lite",
|
| 680 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 681 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
|
| 682 | null,
|
| 683 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLiteFieldNumber,
|
| 684 | pbd::FieldType.Message,
|
| 685 | false);
|
| 686 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite =
|
| 687 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 688 | "protobuf_unittest.repeated_nested_enum_extension_lite",
|
| 689 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 690 | null,
|
| 691 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 692 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLiteFieldNumber,
|
| 693 | pbd::FieldType.Enum,
|
| 694 | false);
|
| 695 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite =
|
| 696 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 697 | "protobuf_unittest.repeated_foreign_enum_extension_lite",
|
| 698 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 699 | null,
|
| 700 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 701 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLiteFieldNumber,
|
| 702 | pbd::FieldType.Enum,
|
| 703 | false);
|
| 704 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite =
|
| 705 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 706 | "protobuf_unittest.repeated_import_enum_extension_lite",
|
| 707 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 708 | null,
|
| 709 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 710 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLiteFieldNumber,
|
| 711 | pbd::FieldType.Enum,
|
| 712 | false);
|
| 713 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite =
|
| 714 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 715 | "protobuf_unittest.repeated_string_piece_extension_lite",
|
| 716 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 717 | null,
|
| 718 | null,
|
| 719 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLiteFieldNumber,
|
| 720 | pbd::FieldType.String,
|
| 721 | false);
|
| 722 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite =
|
| 723 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 724 | "protobuf_unittest.repeated_cord_extension_lite",
|
| 725 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 726 | null,
|
| 727 | null,
|
| 728 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLiteFieldNumber,
|
| 729 | pbd::FieldType.String,
|
| 730 | false);
|
| 731 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite =
|
| 732 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 733 | "protobuf_unittest.default_int32_extension_lite",
|
| 734 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 735 | 41,
|
| 736 | null,
|
| 737 | null,
|
| 738 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLiteFieldNumber,
|
| 739 | pbd::FieldType.Int32);
|
| 740 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite =
|
| 741 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 742 | "protobuf_unittest.default_int64_extension_lite",
|
| 743 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 744 | 42L,
|
| 745 | null,
|
| 746 | null,
|
| 747 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLiteFieldNumber,
|
| 748 | pbd::FieldType.Int64);
|
| 749 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite =
|
| 750 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 751 | "protobuf_unittest.default_uint32_extension_lite",
|
| 752 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 753 | 43,
|
| 754 | null,
|
| 755 | null,
|
| 756 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLiteFieldNumber,
|
| 757 | pbd::FieldType.UInt32);
|
| 758 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite =
|
| 759 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 760 | "protobuf_unittest.default_uint64_extension_lite",
|
| 761 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 762 | 44UL,
|
| 763 | null,
|
| 764 | null,
|
| 765 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLiteFieldNumber,
|
| 766 | pbd::FieldType.UInt64);
|
| 767 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite =
|
| 768 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 769 | "protobuf_unittest.default_sint32_extension_lite",
|
| 770 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 771 | -45,
|
| 772 | null,
|
| 773 | null,
|
| 774 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLiteFieldNumber,
|
| 775 | pbd::FieldType.SInt32);
|
| 776 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite =
|
| 777 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 778 | "protobuf_unittest.default_sint64_extension_lite",
|
| 779 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 780 | 46,
|
| 781 | null,
|
| 782 | null,
|
| 783 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLiteFieldNumber,
|
| 784 | pbd::FieldType.SInt64);
|
| 785 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite =
|
| 786 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 787 | "protobuf_unittest.default_fixed32_extension_lite",
|
| 788 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 789 | 47,
|
| 790 | null,
|
| 791 | null,
|
| 792 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLiteFieldNumber,
|
| 793 | pbd::FieldType.Fixed32);
|
| 794 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite =
|
| 795 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 796 | "protobuf_unittest.default_fixed64_extension_lite",
|
| 797 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 798 | 48,
|
| 799 | null,
|
| 800 | null,
|
| 801 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLiteFieldNumber,
|
| 802 | pbd::FieldType.Fixed64);
|
| 803 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite =
|
| 804 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 805 | "protobuf_unittest.default_sfixed32_extension_lite",
|
| 806 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 807 | 49,
|
| 808 | null,
|
| 809 | null,
|
| 810 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLiteFieldNumber,
|
| 811 | pbd::FieldType.SFixed32);
|
| 812 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite =
|
| 813 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 814 | "protobuf_unittest.default_sfixed64_extension_lite",
|
| 815 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 816 | -50,
|
| 817 | null,
|
| 818 | null,
|
| 819 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLiteFieldNumber,
|
| 820 | pbd::FieldType.SFixed64);
|
| 821 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite =
|
| 822 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 823 | "protobuf_unittest.default_float_extension_lite",
|
| 824 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 825 | 51.5F,
|
| 826 | null,
|
| 827 | null,
|
| 828 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLiteFieldNumber,
|
| 829 | pbd::FieldType.Float);
|
| 830 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite =
|
| 831 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 832 | "protobuf_unittest.default_double_extension_lite",
|
| 833 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 834 | 52000D,
|
| 835 | null,
|
| 836 | null,
|
| 837 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLiteFieldNumber,
|
| 838 | pbd::FieldType.Double);
|
| 839 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite =
|
| 840 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 841 | "protobuf_unittest.default_bool_extension_lite",
|
| 842 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 843 | true,
|
| 844 | null,
|
| 845 | null,
|
| 846 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLiteFieldNumber,
|
| 847 | pbd::FieldType.Bool);
|
| 848 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite =
|
| 849 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 850 | "protobuf_unittest.default_string_extension_lite",
|
| 851 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 852 | "hello",
|
| 853 | null,
|
| 854 | null,
|
| 855 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLiteFieldNumber,
|
| 856 | pbd::FieldType.String);
|
| 857 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite =
|
| 858 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 859 | "protobuf_unittest.default_bytes_extension_lite",
|
| 860 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 861 | ByteString.FromBase64("d29ybGQ="),
|
| 862 | null,
|
| 863 | null,
|
| 864 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLiteFieldNumber,
|
| 865 | pbd::FieldType.Bytes);
|
| 866 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite =
|
| 867 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 868 | "protobuf_unittest.default_nested_enum_extension_lite",
|
| 869 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 870 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR,
|
| 871 | null,
|
| 872 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 873 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLiteFieldNumber,
|
| 874 | pbd::FieldType.Enum);
|
| 875 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite =
|
| 876 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 877 | "protobuf_unittest.default_foreign_enum_extension_lite",
|
| 878 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 879 | global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR,
|
| 880 | null,
|
| 881 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 882 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLiteFieldNumber,
|
| 883 | pbd::FieldType.Enum);
|
| 884 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite =
|
| 885 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 886 | "protobuf_unittest.default_import_enum_extension_lite",
|
| 887 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 888 | global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR,
|
| 889 | null,
|
| 890 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 891 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLiteFieldNumber,
|
| 892 | pbd::FieldType.Enum);
|
| 893 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite =
|
| 894 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 895 | "protobuf_unittest.default_string_piece_extension_lite",
|
| 896 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 897 | "abc",
|
| 898 | null,
|
| 899 | null,
|
| 900 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLiteFieldNumber,
|
| 901 | pbd::FieldType.String);
|
| 902 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite =
|
| 903 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 904 | "protobuf_unittest.default_cord_extension_lite",
|
| 905 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 906 | "123",
|
| 907 | null,
|
| 908 | null,
|
| 909 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLiteFieldNumber,
|
| 910 | pbd::FieldType.String);
|
| 911 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite =
|
| 912 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 913 | "protobuf_unittest.packed_int32_extension_lite",
|
| 914 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 915 | null,
|
| 916 | null,
|
| 917 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLiteFieldNumber,
|
| 918 | pbd::FieldType.Int32,
|
| 919 | true);
|
| 920 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite =
|
| 921 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 922 | "protobuf_unittest.packed_int64_extension_lite",
|
| 923 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 924 | null,
|
| 925 | null,
|
| 926 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLiteFieldNumber,
|
| 927 | pbd::FieldType.Int64,
|
| 928 | true);
|
| 929 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite =
|
| 930 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
|
| 931 | "protobuf_unittest.packed_uint32_extension_lite",
|
| 932 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 933 | null,
|
| 934 | null,
|
| 935 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLiteFieldNumber,
|
| 936 | pbd::FieldType.UInt32,
|
| 937 | true);
|
| 938 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite =
|
| 939 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
|
| 940 | "protobuf_unittest.packed_uint64_extension_lite",
|
| 941 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 942 | null,
|
| 943 | null,
|
| 944 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLiteFieldNumber,
|
| 945 | pbd::FieldType.UInt64,
|
| 946 | true);
|
| 947 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite =
|
| 948 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 949 | "protobuf_unittest.packed_sint32_extension_lite",
|
| 950 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 951 | null,
|
| 952 | null,
|
| 953 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLiteFieldNumber,
|
| 954 | pbd::FieldType.SInt32,
|
| 955 | true);
|
| 956 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite =
|
| 957 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 958 | "protobuf_unittest.packed_sint64_extension_lite",
|
| 959 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 960 | null,
|
| 961 | null,
|
| 962 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLiteFieldNumber,
|
| 963 | pbd::FieldType.SInt64,
|
| 964 | true);
|
| 965 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite =
|
| 966 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
|
| 967 | "protobuf_unittest.packed_fixed32_extension_lite",
|
| 968 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 969 | null,
|
| 970 | null,
|
| 971 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLiteFieldNumber,
|
| 972 | pbd::FieldType.Fixed32,
|
| 973 | true);
|
| 974 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite =
|
| 975 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
|
| 976 | "protobuf_unittest.packed_fixed64_extension_lite",
|
| 977 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 978 | null,
|
| 979 | null,
|
| 980 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLiteFieldNumber,
|
| 981 | pbd::FieldType.Fixed64,
|
| 982 | true);
|
| 983 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite =
|
| 984 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 985 | "protobuf_unittest.packed_sfixed32_extension_lite",
|
| 986 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 987 | null,
|
| 988 | null,
|
| 989 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLiteFieldNumber,
|
| 990 | pbd::FieldType.SFixed32,
|
| 991 | true);
|
| 992 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite =
|
| 993 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 994 | "protobuf_unittest.packed_sfixed64_extension_lite",
|
| 995 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 996 | null,
|
| 997 | null,
|
| 998 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLiteFieldNumber,
|
| 999 | pbd::FieldType.SFixed64,
|
| 1000 | true);
|
| 1001 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite =
|
| 1002 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float>(
|
| 1003 | "protobuf_unittest.packed_float_extension_lite",
|
| 1004 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1005 | null,
|
| 1006 | null,
|
| 1007 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLiteFieldNumber,
|
| 1008 | pbd::FieldType.Float,
|
| 1009 | true);
|
| 1010 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite =
|
| 1011 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double>(
|
| 1012 | "protobuf_unittest.packed_double_extension_lite",
|
| 1013 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1014 | null,
|
| 1015 | null,
|
| 1016 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLiteFieldNumber,
|
| 1017 | pbd::FieldType.Double,
|
| 1018 | true);
|
| 1019 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite =
|
| 1020 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool>(
|
| 1021 | "protobuf_unittest.packed_bool_extension_lite",
|
| 1022 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1023 | null,
|
| 1024 | null,
|
| 1025 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLiteFieldNumber,
|
| 1026 | pbd::FieldType.Bool,
|
| 1027 | true);
|
| 1028 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite =
|
| 1029 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 1030 | "protobuf_unittest.packed_enum_extension_lite",
|
| 1031 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1032 | null,
|
| 1033 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 1034 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLiteFieldNumber,
|
| 1035 | pbd::FieldType.Enum,
|
| 1036 | true);
|
| 1037 | }
|
| 1038 | #endregion
|
| 1039 |
|
| 1040 | }
|
| 1041 | #region Enums
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1042 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1043 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1044 | public enum ForeignEnumLite {
|
| 1045 | FOREIGN_LITE_FOO = 4,
|
| 1046 | FOREIGN_LITE_BAR = 5,
|
| 1047 | FOREIGN_LITE_BAZ = 6,
|
| 1048 | }
|
| 1049 |
|
| 1050 | #endregion
|
| 1051 |
|
| 1052 | #region Messages
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1053 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1054 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1055 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1056 | public sealed partial class TestAllTypesLite : pb::GeneratedMessageLite<TestAllTypesLite, TestAllTypesLite.Builder> {
|
| 1057 | private static readonly TestAllTypesLite defaultInstance = new Builder().BuildPartial();
|
| 1058 | public static TestAllTypesLite DefaultInstance {
|
| 1059 | get { return defaultInstance; }
|
| 1060 | }
|
| 1061 |
|
| 1062 | public override TestAllTypesLite DefaultInstanceForType {
|
| 1063 | get { return defaultInstance; }
|
| 1064 | }
|
| 1065 |
|
| 1066 | protected override TestAllTypesLite ThisMessage {
|
| 1067 | get { return this; }
|
| 1068 | }
|
| 1069 |
|
| 1070 | #region Nested types
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1071 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1072 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1073 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1074 | public static class Types {
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1075 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1076 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1077 | public enum NestedEnum {
|
| 1078 | FOO = 1,
|
| 1079 | BAR = 2,
|
| 1080 | BAZ = 3,
|
| 1081 | }
|
| 1082 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1083 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1084 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1085 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1086 | public sealed partial class NestedMessage : pb::GeneratedMessageLite<NestedMessage, NestedMessage.Builder> {
|
| 1087 | private static readonly NestedMessage defaultInstance = new Builder().BuildPartial();
|
| 1088 | public static NestedMessage DefaultInstance {
|
| 1089 | get { return defaultInstance; }
|
| 1090 | }
|
| 1091 |
|
| 1092 | public override NestedMessage DefaultInstanceForType {
|
| 1093 | get { return defaultInstance; }
|
| 1094 | }
|
| 1095 |
|
| 1096 | protected override NestedMessage ThisMessage {
|
| 1097 | get { return this; }
|
| 1098 | }
|
| 1099 |
|
| 1100 | public const int BbFieldNumber = 1;
|
| 1101 | private bool hasBb;
|
| 1102 | private int bb_ = 0;
|
| 1103 | public bool HasBb {
|
| 1104 | get { return hasBb; }
|
| 1105 | }
|
| 1106 | public int Bb {
|
| 1107 | get { return bb_; }
|
| 1108 | }
|
| 1109 |
|
| 1110 | public override bool IsInitialized {
|
| 1111 | get {
|
| 1112 | return true;
|
| 1113 | }
|
| 1114 | }
|
| 1115 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1116 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1117 | int size = SerializedSize;
|
| 1118 | if (HasBb) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 1119 | output.WriteInt32(1, "bb", Bb);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1120 | }
|
| 1121 | }
|
| 1122 |
|
| 1123 | private int memoizedSerializedSize = -1;
|
| 1124 | public override int SerializedSize {
|
| 1125 | get {
|
| 1126 | int size = memoizedSerializedSize;
|
| 1127 | if (size != -1) return size;
|
| 1128 |
|
| 1129 | size = 0;
|
| 1130 | if (HasBb) {
|
| 1131 | size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
|
| 1132 | }
|
| 1133 | memoizedSerializedSize = size;
|
| 1134 | return size;
|
| 1135 | }
|
| 1136 | }
|
| 1137 |
|
| 1138 | #region Lite runtime methods
|
| 1139 | public override int GetHashCode() {
|
| 1140 | int hash = GetType().GetHashCode();
|
| 1141 | if (hasBb) hash ^= bb_.GetHashCode();
|
| 1142 | return hash;
|
| 1143 | }
|
| 1144 |
|
| 1145 | public override bool Equals(object obj) {
|
| 1146 | NestedMessage other = obj as NestedMessage;
|
| 1147 | if (other == null) return false;
|
| 1148 | if (hasBb != other.hasBb || (hasBb && !bb_.Equals(other.bb_))) return false;
|
| 1149 | return true;
|
| 1150 | }
|
| 1151 |
|
| 1152 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1153 | PrintField("bb", hasBb, bb_, writer);
|
| 1154 | }
|
| 1155 | #endregion
|
| 1156 |
|
| 1157 | public static NestedMessage ParseFrom(pb::ByteString data) {
|
| 1158 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1159 | }
|
| 1160 | public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1161 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1162 | }
|
| 1163 | public static NestedMessage ParseFrom(byte[] data) {
|
| 1164 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1165 | }
|
| 1166 | public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1167 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1168 | }
|
| 1169 | public static NestedMessage ParseFrom(global::System.IO.Stream input) {
|
| 1170 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1171 | }
|
| 1172 | public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1173 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1174 | }
|
| 1175 | public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1176 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1177 | }
|
| 1178 | public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1179 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1180 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1181 | public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1182 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1183 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1184 | public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1185 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1186 | }
|
| 1187 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1188 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1189 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1190 | public static Builder CreateBuilder(NestedMessage prototype) {
|
| 1191 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1192 | }
|
| 1193 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1194 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1195 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1196 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1197 | public sealed partial class Builder : pb::GeneratedBuilderLite<NestedMessage, Builder> {
|
| 1198 | protected override Builder ThisBuilder {
|
| 1199 | get { return this; }
|
| 1200 | }
|
| 1201 | public Builder() {}
|
| 1202 |
|
| 1203 | NestedMessage result = new NestedMessage();
|
| 1204 |
|
| 1205 | protected override NestedMessage MessageBeingBuilt {
|
| 1206 | get { return result; }
|
| 1207 | }
|
| 1208 |
|
| 1209 | public override Builder Clear() {
|
| 1210 | result = new NestedMessage();
|
| 1211 | return this;
|
| 1212 | }
|
| 1213 |
|
| 1214 | public override Builder Clone() {
|
| 1215 | return new Builder().MergeFrom(result);
|
| 1216 | }
|
| 1217 |
|
| 1218 | public override NestedMessage DefaultInstanceForType {
|
| 1219 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; }
|
| 1220 | }
|
| 1221 |
|
| 1222 | public override NestedMessage BuildPartial() {
|
| 1223 | if (result == null) {
|
| 1224 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1225 | }
|
| 1226 | NestedMessage returnMe = result;
|
| 1227 | result = null;
|
| 1228 | return returnMe;
|
| 1229 | }
|
| 1230 |
|
| 1231 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1232 | if (other is NestedMessage) {
|
| 1233 | return MergeFrom((NestedMessage) other);
|
| 1234 | } else {
|
| 1235 | base.MergeFrom(other);
|
| 1236 | return this;
|
| 1237 | }
|
| 1238 | }
|
| 1239 |
|
| 1240 | public override Builder MergeFrom(NestedMessage other) {
|
| 1241 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) return this;
|
| 1242 | if (other.HasBb) {
|
| 1243 | Bb = other.Bb;
|
| 1244 | }
|
| 1245 | return this;
|
| 1246 | }
|
| 1247 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1248 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1249 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1250 | }
|
| 1251 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1252 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1253 | uint tag;
|
| 1254 | string field_name;
|
| 1255 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1256 | switch (tag) {
|
| 1257 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1258 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1259 | }
|
| 1260 | default: {
|
| 1261 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1262 | return this;
|
| 1263 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1264 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1265 | break;
|
| 1266 | }
|
| 1267 | case 8: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1268 | result.hasBb |= input.ReadInt32(ref result.bb_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1269 | break;
|
| 1270 | }
|
| 1271 | }
|
| 1272 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1273 |
|
| 1274 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1275 | }
|
| 1276 |
|
| 1277 |
|
| 1278 | public bool HasBb {
|
| 1279 | get { return result.HasBb; }
|
| 1280 | }
|
| 1281 | public int Bb {
|
| 1282 | get { return result.Bb; }
|
| 1283 | set { SetBb(value); }
|
| 1284 | }
|
| 1285 | public Builder SetBb(int value) {
|
| 1286 | result.hasBb = true;
|
| 1287 | result.bb_ = value;
|
| 1288 | return this;
|
| 1289 | }
|
| 1290 | public Builder ClearBb() {
|
| 1291 | result.hasBb = false;
|
| 1292 | result.bb_ = 0;
|
| 1293 | return this;
|
| 1294 | }
|
| 1295 | }
|
| 1296 | static NestedMessage() {
|
| 1297 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1298 | }
|
| 1299 | }
|
| 1300 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1301 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1302 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1303 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1304 | public sealed partial class OptionalGroup : pb::GeneratedMessageLite<OptionalGroup, OptionalGroup.Builder> {
|
| 1305 | private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial();
|
| 1306 | public static OptionalGroup DefaultInstance {
|
| 1307 | get { return defaultInstance; }
|
| 1308 | }
|
| 1309 |
|
| 1310 | public override OptionalGroup DefaultInstanceForType {
|
| 1311 | get { return defaultInstance; }
|
| 1312 | }
|
| 1313 |
|
| 1314 | protected override OptionalGroup ThisMessage {
|
| 1315 | get { return this; }
|
| 1316 | }
|
| 1317 |
|
| 1318 | public const int AFieldNumber = 17;
|
| 1319 | private bool hasA;
|
| 1320 | private int a_ = 0;
|
| 1321 | public bool HasA {
|
| 1322 | get { return hasA; }
|
| 1323 | }
|
| 1324 | public int A {
|
| 1325 | get { return a_; }
|
| 1326 | }
|
| 1327 |
|
| 1328 | public override bool IsInitialized {
|
| 1329 | get {
|
| 1330 | return true;
|
| 1331 | }
|
| 1332 | }
|
| 1333 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1334 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1335 | int size = SerializedSize;
|
| 1336 | if (HasA) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 1337 | output.WriteInt32(17, "a", A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1338 | }
|
| 1339 | }
|
| 1340 |
|
| 1341 | private int memoizedSerializedSize = -1;
|
| 1342 | public override int SerializedSize {
|
| 1343 | get {
|
| 1344 | int size = memoizedSerializedSize;
|
| 1345 | if (size != -1) return size;
|
| 1346 |
|
| 1347 | size = 0;
|
| 1348 | if (HasA) {
|
| 1349 | size += pb::CodedOutputStream.ComputeInt32Size(17, A);
|
| 1350 | }
|
| 1351 | memoizedSerializedSize = size;
|
| 1352 | return size;
|
| 1353 | }
|
| 1354 | }
|
| 1355 |
|
| 1356 | #region Lite runtime methods
|
| 1357 | public override int GetHashCode() {
|
| 1358 | int hash = GetType().GetHashCode();
|
| 1359 | if (hasA) hash ^= a_.GetHashCode();
|
| 1360 | return hash;
|
| 1361 | }
|
| 1362 |
|
| 1363 | public override bool Equals(object obj) {
|
| 1364 | OptionalGroup other = obj as OptionalGroup;
|
| 1365 | if (other == null) return false;
|
| 1366 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 1367 | return true;
|
| 1368 | }
|
| 1369 |
|
| 1370 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1371 | PrintField("a", hasA, a_, writer);
|
| 1372 | }
|
| 1373 | #endregion
|
| 1374 |
|
| 1375 | public static OptionalGroup ParseFrom(pb::ByteString data) {
|
| 1376 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1377 | }
|
| 1378 | public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1379 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1380 | }
|
| 1381 | public static OptionalGroup ParseFrom(byte[] data) {
|
| 1382 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1383 | }
|
| 1384 | public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1385 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1386 | }
|
| 1387 | public static OptionalGroup ParseFrom(global::System.IO.Stream input) {
|
| 1388 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1389 | }
|
| 1390 | public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1391 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1392 | }
|
| 1393 | public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1394 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1395 | }
|
| 1396 | public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1397 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1398 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1399 | public static OptionalGroup ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1400 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1401 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1402 | public static OptionalGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1403 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1404 | }
|
| 1405 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1406 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1407 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1408 | public static Builder CreateBuilder(OptionalGroup prototype) {
|
| 1409 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1410 | }
|
| 1411 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1412 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1413 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1414 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1415 | public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup, Builder> {
|
| 1416 | protected override Builder ThisBuilder {
|
| 1417 | get { return this; }
|
| 1418 | }
|
| 1419 | public Builder() {}
|
| 1420 |
|
| 1421 | OptionalGroup result = new OptionalGroup();
|
| 1422 |
|
| 1423 | protected override OptionalGroup MessageBeingBuilt {
|
| 1424 | get { return result; }
|
| 1425 | }
|
| 1426 |
|
| 1427 | public override Builder Clear() {
|
| 1428 | result = new OptionalGroup();
|
| 1429 | return this;
|
| 1430 | }
|
| 1431 |
|
| 1432 | public override Builder Clone() {
|
| 1433 | return new Builder().MergeFrom(result);
|
| 1434 | }
|
| 1435 |
|
| 1436 | public override OptionalGroup DefaultInstanceForType {
|
| 1437 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; }
|
| 1438 | }
|
| 1439 |
|
| 1440 | public override OptionalGroup BuildPartial() {
|
| 1441 | if (result == null) {
|
| 1442 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1443 | }
|
| 1444 | OptionalGroup returnMe = result;
|
| 1445 | result = null;
|
| 1446 | return returnMe;
|
| 1447 | }
|
| 1448 |
|
| 1449 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1450 | if (other is OptionalGroup) {
|
| 1451 | return MergeFrom((OptionalGroup) other);
|
| 1452 | } else {
|
| 1453 | base.MergeFrom(other);
|
| 1454 | return this;
|
| 1455 | }
|
| 1456 | }
|
| 1457 |
|
| 1458 | public override Builder MergeFrom(OptionalGroup other) {
|
| 1459 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) return this;
|
| 1460 | if (other.HasA) {
|
| 1461 | A = other.A;
|
| 1462 | }
|
| 1463 | return this;
|
| 1464 | }
|
| 1465 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1466 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1467 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1468 | }
|
| 1469 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1470 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1471 | uint tag;
|
| 1472 | string field_name;
|
| 1473 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1474 | switch (tag) {
|
| 1475 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1476 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1477 | }
|
| 1478 | default: {
|
| 1479 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1480 | return this;
|
| 1481 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1482 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1483 | break;
|
| 1484 | }
|
| 1485 | case 136: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1486 | result.hasA |= input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1487 | break;
|
| 1488 | }
|
| 1489 | }
|
| 1490 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1491 |
|
| 1492 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1493 | }
|
| 1494 |
|
| 1495 |
|
| 1496 | public bool HasA {
|
| 1497 | get { return result.HasA; }
|
| 1498 | }
|
| 1499 | public int A {
|
| 1500 | get { return result.A; }
|
| 1501 | set { SetA(value); }
|
| 1502 | }
|
| 1503 | public Builder SetA(int value) {
|
| 1504 | result.hasA = true;
|
| 1505 | result.a_ = value;
|
| 1506 | return this;
|
| 1507 | }
|
| 1508 | public Builder ClearA() {
|
| 1509 | result.hasA = false;
|
| 1510 | result.a_ = 0;
|
| 1511 | return this;
|
| 1512 | }
|
| 1513 | }
|
| 1514 | static OptionalGroup() {
|
| 1515 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1516 | }
|
| 1517 | }
|
| 1518 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1519 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1520 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1521 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1522 | public sealed partial class RepeatedGroup : pb::GeneratedMessageLite<RepeatedGroup, RepeatedGroup.Builder> {
|
| 1523 | private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial();
|
| 1524 | public static RepeatedGroup DefaultInstance {
|
| 1525 | get { return defaultInstance; }
|
| 1526 | }
|
| 1527 |
|
| 1528 | public override RepeatedGroup DefaultInstanceForType {
|
| 1529 | get { return defaultInstance; }
|
| 1530 | }
|
| 1531 |
|
| 1532 | protected override RepeatedGroup ThisMessage {
|
| 1533 | get { return this; }
|
| 1534 | }
|
| 1535 |
|
| 1536 | public const int AFieldNumber = 47;
|
| 1537 | private bool hasA;
|
| 1538 | private int a_ = 0;
|
| 1539 | public bool HasA {
|
| 1540 | get { return hasA; }
|
| 1541 | }
|
| 1542 | public int A {
|
| 1543 | get { return a_; }
|
| 1544 | }
|
| 1545 |
|
| 1546 | public override bool IsInitialized {
|
| 1547 | get {
|
| 1548 | return true;
|
| 1549 | }
|
| 1550 | }
|
| 1551 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1552 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1553 | int size = SerializedSize;
|
| 1554 | if (HasA) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 1555 | output.WriteInt32(47, "a", A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1556 | }
|
| 1557 | }
|
| 1558 |
|
| 1559 | private int memoizedSerializedSize = -1;
|
| 1560 | public override int SerializedSize {
|
| 1561 | get {
|
| 1562 | int size = memoizedSerializedSize;
|
| 1563 | if (size != -1) return size;
|
| 1564 |
|
| 1565 | size = 0;
|
| 1566 | if (HasA) {
|
| 1567 | size += pb::CodedOutputStream.ComputeInt32Size(47, A);
|
| 1568 | }
|
| 1569 | memoizedSerializedSize = size;
|
| 1570 | return size;
|
| 1571 | }
|
| 1572 | }
|
| 1573 |
|
| 1574 | #region Lite runtime methods
|
| 1575 | public override int GetHashCode() {
|
| 1576 | int hash = GetType().GetHashCode();
|
| 1577 | if (hasA) hash ^= a_.GetHashCode();
|
| 1578 | return hash;
|
| 1579 | }
|
| 1580 |
|
| 1581 | public override bool Equals(object obj) {
|
| 1582 | RepeatedGroup other = obj as RepeatedGroup;
|
| 1583 | if (other == null) return false;
|
| 1584 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 1585 | return true;
|
| 1586 | }
|
| 1587 |
|
| 1588 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1589 | PrintField("a", hasA, a_, writer);
|
| 1590 | }
|
| 1591 | #endregion
|
| 1592 |
|
| 1593 | public static RepeatedGroup ParseFrom(pb::ByteString data) {
|
| 1594 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1595 | }
|
| 1596 | public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1597 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1598 | }
|
| 1599 | public static RepeatedGroup ParseFrom(byte[] data) {
|
| 1600 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1601 | }
|
| 1602 | public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1603 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1604 | }
|
| 1605 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input) {
|
| 1606 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1607 | }
|
| 1608 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1609 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1610 | }
|
| 1611 | public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1612 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1613 | }
|
| 1614 | public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1615 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1616 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1617 | public static RepeatedGroup ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1618 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1619 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1620 | public static RepeatedGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1621 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1622 | }
|
| 1623 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1624 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1625 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1626 | public static Builder CreateBuilder(RepeatedGroup prototype) {
|
| 1627 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1628 | }
|
| 1629 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1630 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1631 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1632 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1633 | public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup, Builder> {
|
| 1634 | protected override Builder ThisBuilder {
|
| 1635 | get { return this; }
|
| 1636 | }
|
| 1637 | public Builder() {}
|
| 1638 |
|
| 1639 | RepeatedGroup result = new RepeatedGroup();
|
| 1640 |
|
| 1641 | protected override RepeatedGroup MessageBeingBuilt {
|
| 1642 | get { return result; }
|
| 1643 | }
|
| 1644 |
|
| 1645 | public override Builder Clear() {
|
| 1646 | result = new RepeatedGroup();
|
| 1647 | return this;
|
| 1648 | }
|
| 1649 |
|
| 1650 | public override Builder Clone() {
|
| 1651 | return new Builder().MergeFrom(result);
|
| 1652 | }
|
| 1653 |
|
| 1654 | public override RepeatedGroup DefaultInstanceForType {
|
| 1655 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance; }
|
| 1656 | }
|
| 1657 |
|
| 1658 | public override RepeatedGroup BuildPartial() {
|
| 1659 | if (result == null) {
|
| 1660 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1661 | }
|
| 1662 | RepeatedGroup returnMe = result;
|
| 1663 | result = null;
|
| 1664 | return returnMe;
|
| 1665 | }
|
| 1666 |
|
| 1667 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1668 | if (other is RepeatedGroup) {
|
| 1669 | return MergeFrom((RepeatedGroup) other);
|
| 1670 | } else {
|
| 1671 | base.MergeFrom(other);
|
| 1672 | return this;
|
| 1673 | }
|
| 1674 | }
|
| 1675 |
|
| 1676 | public override Builder MergeFrom(RepeatedGroup other) {
|
| 1677 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance) return this;
|
| 1678 | if (other.HasA) {
|
| 1679 | A = other.A;
|
| 1680 | }
|
| 1681 | return this;
|
| 1682 | }
|
| 1683 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1684 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1685 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1686 | }
|
| 1687 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 1688 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1689 | uint tag;
|
| 1690 | string field_name;
|
| 1691 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1692 | switch (tag) {
|
| 1693 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1694 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1695 | }
|
| 1696 | default: {
|
| 1697 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1698 | return this;
|
| 1699 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1700 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1701 | break;
|
| 1702 | }
|
| 1703 | case 376: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1704 | result.hasA |= input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1705 | break;
|
| 1706 | }
|
| 1707 | }
|
| 1708 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1709 |
|
| 1710 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1711 | }
|
| 1712 |
|
| 1713 |
|
| 1714 | public bool HasA {
|
| 1715 | get { return result.HasA; }
|
| 1716 | }
|
| 1717 | public int A {
|
| 1718 | get { return result.A; }
|
| 1719 | set { SetA(value); }
|
| 1720 | }
|
| 1721 | public Builder SetA(int value) {
|
| 1722 | result.hasA = true;
|
| 1723 | result.a_ = value;
|
| 1724 | return this;
|
| 1725 | }
|
| 1726 | public Builder ClearA() {
|
| 1727 | result.hasA = false;
|
| 1728 | result.a_ = 0;
|
| 1729 | return this;
|
| 1730 | }
|
| 1731 | }
|
| 1732 | static RepeatedGroup() {
|
| 1733 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1734 | }
|
| 1735 | }
|
| 1736 |
|
| 1737 | }
|
| 1738 | #endregion
|
| 1739 |
|
| 1740 | public const int OptionalInt32FieldNumber = 1;
|
| 1741 | private bool hasOptionalInt32;
|
| 1742 | private int optionalInt32_ = 0;
|
| 1743 | public bool HasOptionalInt32 {
|
| 1744 | get { return hasOptionalInt32; }
|
| 1745 | }
|
| 1746 | public int OptionalInt32 {
|
| 1747 | get { return optionalInt32_; }
|
| 1748 | }
|
| 1749 |
|
| 1750 | public const int OptionalInt64FieldNumber = 2;
|
| 1751 | private bool hasOptionalInt64;
|
| 1752 | private long optionalInt64_ = 0L;
|
| 1753 | public bool HasOptionalInt64 {
|
| 1754 | get { return hasOptionalInt64; }
|
| 1755 | }
|
| 1756 | public long OptionalInt64 {
|
| 1757 | get { return optionalInt64_; }
|
| 1758 | }
|
| 1759 |
|
| 1760 | public const int OptionalUint32FieldNumber = 3;
|
| 1761 | private bool hasOptionalUint32;
|
| 1762 | private uint optionalUint32_ = 0;
|
| 1763 | public bool HasOptionalUint32 {
|
| 1764 | get { return hasOptionalUint32; }
|
| 1765 | }
|
| 1766 | [global::System.CLSCompliant(false)]
|
| 1767 | public uint OptionalUint32 {
|
| 1768 | get { return optionalUint32_; }
|
| 1769 | }
|
| 1770 |
|
| 1771 | public const int OptionalUint64FieldNumber = 4;
|
| 1772 | private bool hasOptionalUint64;
|
| 1773 | private ulong optionalUint64_ = 0UL;
|
| 1774 | public bool HasOptionalUint64 {
|
| 1775 | get { return hasOptionalUint64; }
|
| 1776 | }
|
| 1777 | [global::System.CLSCompliant(false)]
|
| 1778 | public ulong OptionalUint64 {
|
| 1779 | get { return optionalUint64_; }
|
| 1780 | }
|
| 1781 |
|
| 1782 | public const int OptionalSint32FieldNumber = 5;
|
| 1783 | private bool hasOptionalSint32;
|
| 1784 | private int optionalSint32_ = 0;
|
| 1785 | public bool HasOptionalSint32 {
|
| 1786 | get { return hasOptionalSint32; }
|
| 1787 | }
|
| 1788 | public int OptionalSint32 {
|
| 1789 | get { return optionalSint32_; }
|
| 1790 | }
|
| 1791 |
|
| 1792 | public const int OptionalSint64FieldNumber = 6;
|
| 1793 | private bool hasOptionalSint64;
|
| 1794 | private long optionalSint64_ = 0;
|
| 1795 | public bool HasOptionalSint64 {
|
| 1796 | get { return hasOptionalSint64; }
|
| 1797 | }
|
| 1798 | public long OptionalSint64 {
|
| 1799 | get { return optionalSint64_; }
|
| 1800 | }
|
| 1801 |
|
| 1802 | public const int OptionalFixed32FieldNumber = 7;
|
| 1803 | private bool hasOptionalFixed32;
|
| 1804 | private uint optionalFixed32_ = 0;
|
| 1805 | public bool HasOptionalFixed32 {
|
| 1806 | get { return hasOptionalFixed32; }
|
| 1807 | }
|
| 1808 | [global::System.CLSCompliant(false)]
|
| 1809 | public uint OptionalFixed32 {
|
| 1810 | get { return optionalFixed32_; }
|
| 1811 | }
|
| 1812 |
|
| 1813 | public const int OptionalFixed64FieldNumber = 8;
|
| 1814 | private bool hasOptionalFixed64;
|
| 1815 | private ulong optionalFixed64_ = 0;
|
| 1816 | public bool HasOptionalFixed64 {
|
| 1817 | get { return hasOptionalFixed64; }
|
| 1818 | }
|
| 1819 | [global::System.CLSCompliant(false)]
|
| 1820 | public ulong OptionalFixed64 {
|
| 1821 | get { return optionalFixed64_; }
|
| 1822 | }
|
| 1823 |
|
| 1824 | public const int OptionalSfixed32FieldNumber = 9;
|
| 1825 | private bool hasOptionalSfixed32;
|
| 1826 | private int optionalSfixed32_ = 0;
|
| 1827 | public bool HasOptionalSfixed32 {
|
| 1828 | get { return hasOptionalSfixed32; }
|
| 1829 | }
|
| 1830 | public int OptionalSfixed32 {
|
| 1831 | get { return optionalSfixed32_; }
|
| 1832 | }
|
| 1833 |
|
| 1834 | public const int OptionalSfixed64FieldNumber = 10;
|
| 1835 | private bool hasOptionalSfixed64;
|
| 1836 | private long optionalSfixed64_ = 0;
|
| 1837 | public bool HasOptionalSfixed64 {
|
| 1838 | get { return hasOptionalSfixed64; }
|
| 1839 | }
|
| 1840 | public long OptionalSfixed64 {
|
| 1841 | get { return optionalSfixed64_; }
|
| 1842 | }
|
| 1843 |
|
| 1844 | public const int OptionalFloatFieldNumber = 11;
|
| 1845 | private bool hasOptionalFloat;
|
| 1846 | private float optionalFloat_ = 0F;
|
| 1847 | public bool HasOptionalFloat {
|
| 1848 | get { return hasOptionalFloat; }
|
| 1849 | }
|
| 1850 | public float OptionalFloat {
|
| 1851 | get { return optionalFloat_; }
|
| 1852 | }
|
| 1853 |
|
| 1854 | public const int OptionalDoubleFieldNumber = 12;
|
| 1855 | private bool hasOptionalDouble;
|
| 1856 | private double optionalDouble_ = 0D;
|
| 1857 | public bool HasOptionalDouble {
|
| 1858 | get { return hasOptionalDouble; }
|
| 1859 | }
|
| 1860 | public double OptionalDouble {
|
| 1861 | get { return optionalDouble_; }
|
| 1862 | }
|
| 1863 |
|
| 1864 | public const int OptionalBoolFieldNumber = 13;
|
| 1865 | private bool hasOptionalBool;
|
| 1866 | private bool optionalBool_ = false;
|
| 1867 | public bool HasOptionalBool {
|
| 1868 | get { return hasOptionalBool; }
|
| 1869 | }
|
| 1870 | public bool OptionalBool {
|
| 1871 | get { return optionalBool_; }
|
| 1872 | }
|
| 1873 |
|
| 1874 | public const int OptionalStringFieldNumber = 14;
|
| 1875 | private bool hasOptionalString;
|
| 1876 | private string optionalString_ = "";
|
| 1877 | public bool HasOptionalString {
|
| 1878 | get { return hasOptionalString; }
|
| 1879 | }
|
| 1880 | public string OptionalString {
|
| 1881 | get { return optionalString_; }
|
| 1882 | }
|
| 1883 |
|
| 1884 | public const int OptionalBytesFieldNumber = 15;
|
| 1885 | private bool hasOptionalBytes;
|
| 1886 | private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
|
| 1887 | public bool HasOptionalBytes {
|
| 1888 | get { return hasOptionalBytes; }
|
| 1889 | }
|
| 1890 | public pb::ByteString OptionalBytes {
|
| 1891 | get { return optionalBytes_; }
|
| 1892 | }
|
| 1893 |
|
| 1894 | public const int OptionalGroupFieldNumber = 16;
|
| 1895 | private bool hasOptionalGroup;
|
| 1896 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance;
|
| 1897 | public bool HasOptionalGroup {
|
| 1898 | get { return hasOptionalGroup; }
|
| 1899 | }
|
| 1900 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
|
| 1901 | get { return optionalGroup_; }
|
| 1902 | }
|
| 1903 |
|
| 1904 | public const int OptionalNestedMessageFieldNumber = 18;
|
| 1905 | private bool hasOptionalNestedMessage;
|
| 1906 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance;
|
| 1907 | public bool HasOptionalNestedMessage {
|
| 1908 | get { return hasOptionalNestedMessage; }
|
| 1909 | }
|
| 1910 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
|
| 1911 | get { return optionalNestedMessage_; }
|
| 1912 | }
|
| 1913 |
|
| 1914 | public const int OptionalForeignMessageFieldNumber = 19;
|
| 1915 | private bool hasOptionalForeignMessage;
|
| 1916 | private global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance;
|
| 1917 | public bool HasOptionalForeignMessage {
|
| 1918 | get { return hasOptionalForeignMessage; }
|
| 1919 | }
|
| 1920 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage {
|
| 1921 | get { return optionalForeignMessage_; }
|
| 1922 | }
|
| 1923 |
|
| 1924 | public const int OptionalImportMessageFieldNumber = 20;
|
| 1925 | private bool hasOptionalImportMessage;
|
| 1926 | private global::Google.ProtocolBuffers.TestProtos.ImportMessageLite optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance;
|
| 1927 | public bool HasOptionalImportMessage {
|
| 1928 | get { return hasOptionalImportMessage; }
|
| 1929 | }
|
| 1930 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage {
|
| 1931 | get { return optionalImportMessage_; }
|
| 1932 | }
|
| 1933 |
|
| 1934 | public const int OptionalNestedEnumFieldNumber = 21;
|
| 1935 | private bool hasOptionalNestedEnum;
|
| 1936 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO;
|
| 1937 | public bool HasOptionalNestedEnum {
|
| 1938 | get { return hasOptionalNestedEnum; }
|
| 1939 | }
|
| 1940 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
|
| 1941 | get { return optionalNestedEnum_; }
|
| 1942 | }
|
| 1943 |
|
| 1944 | public const int OptionalForeignEnumFieldNumber = 22;
|
| 1945 | private bool hasOptionalForeignEnum;
|
| 1946 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
|
| 1947 | public bool HasOptionalForeignEnum {
|
| 1948 | get { return hasOptionalForeignEnum; }
|
| 1949 | }
|
| 1950 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
|
| 1951 | get { return optionalForeignEnum_; }
|
| 1952 | }
|
| 1953 |
|
| 1954 | public const int OptionalImportEnumFieldNumber = 23;
|
| 1955 | private bool hasOptionalImportEnum;
|
| 1956 | private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO;
|
| 1957 | public bool HasOptionalImportEnum {
|
| 1958 | get { return hasOptionalImportEnum; }
|
| 1959 | }
|
| 1960 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum {
|
| 1961 | get { return optionalImportEnum_; }
|
| 1962 | }
|
| 1963 |
|
| 1964 | public const int OptionalStringPieceFieldNumber = 24;
|
| 1965 | private bool hasOptionalStringPiece;
|
| 1966 | private string optionalStringPiece_ = "";
|
| 1967 | public bool HasOptionalStringPiece {
|
| 1968 | get { return hasOptionalStringPiece; }
|
| 1969 | }
|
| 1970 | public string OptionalStringPiece {
|
| 1971 | get { return optionalStringPiece_; }
|
| 1972 | }
|
| 1973 |
|
| 1974 | public const int OptionalCordFieldNumber = 25;
|
| 1975 | private bool hasOptionalCord;
|
| 1976 | private string optionalCord_ = "";
|
| 1977 | public bool HasOptionalCord {
|
| 1978 | get { return hasOptionalCord; }
|
| 1979 | }
|
| 1980 | public string OptionalCord {
|
| 1981 | get { return optionalCord_; }
|
| 1982 | }
|
| 1983 |
|
| 1984 | public const int RepeatedInt32FieldNumber = 31;
|
| 1985 | private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
|
| 1986 | public scg::IList<int> RepeatedInt32List {
|
| 1987 | get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
|
| 1988 | }
|
| 1989 | public int RepeatedInt32Count {
|
| 1990 | get { return repeatedInt32_.Count; }
|
| 1991 | }
|
| 1992 | public int GetRepeatedInt32(int index) {
|
| 1993 | return repeatedInt32_[index];
|
| 1994 | }
|
| 1995 |
|
| 1996 | public const int RepeatedInt64FieldNumber = 32;
|
| 1997 | private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
|
| 1998 | public scg::IList<long> RepeatedInt64List {
|
| 1999 | get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
|
| 2000 | }
|
| 2001 | public int RepeatedInt64Count {
|
| 2002 | get { return repeatedInt64_.Count; }
|
| 2003 | }
|
| 2004 | public long GetRepeatedInt64(int index) {
|
| 2005 | return repeatedInt64_[index];
|
| 2006 | }
|
| 2007 |
|
| 2008 | public const int RepeatedUint32FieldNumber = 33;
|
| 2009 | private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>();
|
| 2010 | [global::System.CLSCompliant(false)]
|
| 2011 | public scg::IList<uint> RepeatedUint32List {
|
| 2012 | get { return pbc::Lists.AsReadOnly(repeatedUint32_); }
|
| 2013 | }
|
| 2014 | public int RepeatedUint32Count {
|
| 2015 | get { return repeatedUint32_.Count; }
|
| 2016 | }
|
| 2017 | [global::System.CLSCompliant(false)]
|
| 2018 | public uint GetRepeatedUint32(int index) {
|
| 2019 | return repeatedUint32_[index];
|
| 2020 | }
|
| 2021 |
|
| 2022 | public const int RepeatedUint64FieldNumber = 34;
|
| 2023 | private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
|
| 2024 | [global::System.CLSCompliant(false)]
|
| 2025 | public scg::IList<ulong> RepeatedUint64List {
|
| 2026 | get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
|
| 2027 | }
|
| 2028 | public int RepeatedUint64Count {
|
| 2029 | get { return repeatedUint64_.Count; }
|
| 2030 | }
|
| 2031 | [global::System.CLSCompliant(false)]
|
| 2032 | public ulong GetRepeatedUint64(int index) {
|
| 2033 | return repeatedUint64_[index];
|
| 2034 | }
|
| 2035 |
|
| 2036 | public const int RepeatedSint32FieldNumber = 35;
|
| 2037 | private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>();
|
| 2038 | public scg::IList<int> RepeatedSint32List {
|
| 2039 | get { return pbc::Lists.AsReadOnly(repeatedSint32_); }
|
| 2040 | }
|
| 2041 | public int RepeatedSint32Count {
|
| 2042 | get { return repeatedSint32_.Count; }
|
| 2043 | }
|
| 2044 | public int GetRepeatedSint32(int index) {
|
| 2045 | return repeatedSint32_[index];
|
| 2046 | }
|
| 2047 |
|
| 2048 | public const int RepeatedSint64FieldNumber = 36;
|
| 2049 | private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>();
|
| 2050 | public scg::IList<long> RepeatedSint64List {
|
| 2051 | get { return pbc::Lists.AsReadOnly(repeatedSint64_); }
|
| 2052 | }
|
| 2053 | public int RepeatedSint64Count {
|
| 2054 | get { return repeatedSint64_.Count; }
|
| 2055 | }
|
| 2056 | public long GetRepeatedSint64(int index) {
|
| 2057 | return repeatedSint64_[index];
|
| 2058 | }
|
| 2059 |
|
| 2060 | public const int RepeatedFixed32FieldNumber = 37;
|
| 2061 | private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
|
| 2062 | [global::System.CLSCompliant(false)]
|
| 2063 | public scg::IList<uint> RepeatedFixed32List {
|
| 2064 | get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
|
| 2065 | }
|
| 2066 | public int RepeatedFixed32Count {
|
| 2067 | get { return repeatedFixed32_.Count; }
|
| 2068 | }
|
| 2069 | [global::System.CLSCompliant(false)]
|
| 2070 | public uint GetRepeatedFixed32(int index) {
|
| 2071 | return repeatedFixed32_[index];
|
| 2072 | }
|
| 2073 |
|
| 2074 | public const int RepeatedFixed64FieldNumber = 38;
|
| 2075 | private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
|
| 2076 | [global::System.CLSCompliant(false)]
|
| 2077 | public scg::IList<ulong> RepeatedFixed64List {
|
| 2078 | get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
|
| 2079 | }
|
| 2080 | public int RepeatedFixed64Count {
|
| 2081 | get { return repeatedFixed64_.Count; }
|
| 2082 | }
|
| 2083 | [global::System.CLSCompliant(false)]
|
| 2084 | public ulong GetRepeatedFixed64(int index) {
|
| 2085 | return repeatedFixed64_[index];
|
| 2086 | }
|
| 2087 |
|
| 2088 | public const int RepeatedSfixed32FieldNumber = 39;
|
| 2089 | private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>();
|
| 2090 | public scg::IList<int> RepeatedSfixed32List {
|
| 2091 | get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); }
|
| 2092 | }
|
| 2093 | public int RepeatedSfixed32Count {
|
| 2094 | get { return repeatedSfixed32_.Count; }
|
| 2095 | }
|
| 2096 | public int GetRepeatedSfixed32(int index) {
|
| 2097 | return repeatedSfixed32_[index];
|
| 2098 | }
|
| 2099 |
|
| 2100 | public const int RepeatedSfixed64FieldNumber = 40;
|
| 2101 | private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>();
|
| 2102 | public scg::IList<long> RepeatedSfixed64List {
|
| 2103 | get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); }
|
| 2104 | }
|
| 2105 | public int RepeatedSfixed64Count {
|
| 2106 | get { return repeatedSfixed64_.Count; }
|
| 2107 | }
|
| 2108 | public long GetRepeatedSfixed64(int index) {
|
| 2109 | return repeatedSfixed64_[index];
|
| 2110 | }
|
| 2111 |
|
| 2112 | public const int RepeatedFloatFieldNumber = 41;
|
| 2113 | private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
|
| 2114 | public scg::IList<float> RepeatedFloatList {
|
| 2115 | get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
|
| 2116 | }
|
| 2117 | public int RepeatedFloatCount {
|
| 2118 | get { return repeatedFloat_.Count; }
|
| 2119 | }
|
| 2120 | public float GetRepeatedFloat(int index) {
|
| 2121 | return repeatedFloat_[index];
|
| 2122 | }
|
| 2123 |
|
| 2124 | public const int RepeatedDoubleFieldNumber = 42;
|
| 2125 | private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>();
|
| 2126 | public scg::IList<double> RepeatedDoubleList {
|
| 2127 | get { return pbc::Lists.AsReadOnly(repeatedDouble_); }
|
| 2128 | }
|
| 2129 | public int RepeatedDoubleCount {
|
| 2130 | get { return repeatedDouble_.Count; }
|
| 2131 | }
|
| 2132 | public double GetRepeatedDouble(int index) {
|
| 2133 | return repeatedDouble_[index];
|
| 2134 | }
|
| 2135 |
|
| 2136 | public const int RepeatedBoolFieldNumber = 43;
|
| 2137 | private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>();
|
| 2138 | public scg::IList<bool> RepeatedBoolList {
|
| 2139 | get { return pbc::Lists.AsReadOnly(repeatedBool_); }
|
| 2140 | }
|
| 2141 | public int RepeatedBoolCount {
|
| 2142 | get { return repeatedBool_.Count; }
|
| 2143 | }
|
| 2144 | public bool GetRepeatedBool(int index) {
|
| 2145 | return repeatedBool_[index];
|
| 2146 | }
|
| 2147 |
|
| 2148 | public const int RepeatedStringFieldNumber = 44;
|
| 2149 | private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>();
|
| 2150 | public scg::IList<string> RepeatedStringList {
|
| 2151 | get { return pbc::Lists.AsReadOnly(repeatedString_); }
|
| 2152 | }
|
| 2153 | public int RepeatedStringCount {
|
| 2154 | get { return repeatedString_.Count; }
|
| 2155 | }
|
| 2156 | public string GetRepeatedString(int index) {
|
| 2157 | return repeatedString_[index];
|
| 2158 | }
|
| 2159 |
|
| 2160 | public const int RepeatedBytesFieldNumber = 45;
|
| 2161 | private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>();
|
| 2162 | public scg::IList<pb::ByteString> RepeatedBytesList {
|
| 2163 | get { return pbc::Lists.AsReadOnly(repeatedBytes_); }
|
| 2164 | }
|
| 2165 | public int RepeatedBytesCount {
|
| 2166 | get { return repeatedBytes_.Count; }
|
| 2167 | }
|
| 2168 | public pb::ByteString GetRepeatedBytes(int index) {
|
| 2169 | return repeatedBytes_[index];
|
| 2170 | }
|
| 2171 |
|
| 2172 | public const int RepeatedGroupFieldNumber = 46;
|
| 2173 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup>();
|
| 2174 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
|
| 2175 | get { return repeatedGroup_; }
|
| 2176 | }
|
| 2177 | public int RepeatedGroupCount {
|
| 2178 | get { return repeatedGroup_.Count; }
|
| 2179 | }
|
| 2180 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
|
| 2181 | return repeatedGroup_[index];
|
| 2182 | }
|
| 2183 |
|
| 2184 | public const int RepeatedNestedMessageFieldNumber = 48;
|
| 2185 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>();
|
| 2186 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
|
| 2187 | get { return repeatedNestedMessage_; }
|
| 2188 | }
|
| 2189 | public int RepeatedNestedMessageCount {
|
| 2190 | get { return repeatedNestedMessage_.Count; }
|
| 2191 | }
|
| 2192 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
|
| 2193 | return repeatedNestedMessage_[index];
|
| 2194 | }
|
| 2195 |
|
| 2196 | public const int RepeatedForeignMessageFieldNumber = 49;
|
| 2197 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>();
|
| 2198 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList {
|
| 2199 | get { return repeatedForeignMessage_; }
|
| 2200 | }
|
| 2201 | public int RepeatedForeignMessageCount {
|
| 2202 | get { return repeatedForeignMessage_.Count; }
|
| 2203 | }
|
| 2204 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
|
| 2205 | return repeatedForeignMessage_[index];
|
| 2206 | }
|
| 2207 |
|
| 2208 | public const int RepeatedImportMessageFieldNumber = 50;
|
| 2209 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>();
|
| 2210 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
|
| 2211 | get { return repeatedImportMessage_; }
|
| 2212 | }
|
| 2213 | public int RepeatedImportMessageCount {
|
| 2214 | get { return repeatedImportMessage_.Count; }
|
| 2215 | }
|
| 2216 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
|
| 2217 | return repeatedImportMessage_[index];
|
| 2218 | }
|
| 2219 |
|
| 2220 | public const int RepeatedNestedEnumFieldNumber = 51;
|
| 2221 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>();
|
| 2222 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
|
| 2223 | get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
|
| 2224 | }
|
| 2225 | public int RepeatedNestedEnumCount {
|
| 2226 | get { return repeatedNestedEnum_.Count; }
|
| 2227 | }
|
| 2228 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
|
| 2229 | return repeatedNestedEnum_[index];
|
| 2230 | }
|
| 2231 |
|
| 2232 | public const int RepeatedForeignEnumFieldNumber = 52;
|
| 2233 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
|
| 2234 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList {
|
| 2235 | get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
|
| 2236 | }
|
| 2237 | public int RepeatedForeignEnumCount {
|
| 2238 | get { return repeatedForeignEnum_.Count; }
|
| 2239 | }
|
| 2240 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
|
| 2241 | return repeatedForeignEnum_[index];
|
| 2242 | }
|
| 2243 |
|
| 2244 | public const int RepeatedImportEnumFieldNumber = 53;
|
| 2245 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>();
|
| 2246 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
|
| 2247 | get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
|
| 2248 | }
|
| 2249 | public int RepeatedImportEnumCount {
|
| 2250 | get { return repeatedImportEnum_.Count; }
|
| 2251 | }
|
| 2252 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) {
|
| 2253 | return repeatedImportEnum_[index];
|
| 2254 | }
|
| 2255 |
|
| 2256 | public const int RepeatedStringPieceFieldNumber = 54;
|
| 2257 | private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>();
|
| 2258 | public scg::IList<string> RepeatedStringPieceList {
|
| 2259 | get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); }
|
| 2260 | }
|
| 2261 | public int RepeatedStringPieceCount {
|
| 2262 | get { return repeatedStringPiece_.Count; }
|
| 2263 | }
|
| 2264 | public string GetRepeatedStringPiece(int index) {
|
| 2265 | return repeatedStringPiece_[index];
|
| 2266 | }
|
| 2267 |
|
| 2268 | public const int RepeatedCordFieldNumber = 55;
|
| 2269 | private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>();
|
| 2270 | public scg::IList<string> RepeatedCordList {
|
| 2271 | get { return pbc::Lists.AsReadOnly(repeatedCord_); }
|
| 2272 | }
|
| 2273 | public int RepeatedCordCount {
|
| 2274 | get { return repeatedCord_.Count; }
|
| 2275 | }
|
| 2276 | public string GetRepeatedCord(int index) {
|
| 2277 | return repeatedCord_[index];
|
| 2278 | }
|
| 2279 |
|
| 2280 | public const int DefaultInt32FieldNumber = 61;
|
| 2281 | private bool hasDefaultInt32;
|
| 2282 | private int defaultInt32_ = 41;
|
| 2283 | public bool HasDefaultInt32 {
|
| 2284 | get { return hasDefaultInt32; }
|
| 2285 | }
|
| 2286 | public int DefaultInt32 {
|
| 2287 | get { return defaultInt32_; }
|
| 2288 | }
|
| 2289 |
|
| 2290 | public const int DefaultInt64FieldNumber = 62;
|
| 2291 | private bool hasDefaultInt64;
|
| 2292 | private long defaultInt64_ = 42L;
|
| 2293 | public bool HasDefaultInt64 {
|
| 2294 | get { return hasDefaultInt64; }
|
| 2295 | }
|
| 2296 | public long DefaultInt64 {
|
| 2297 | get { return defaultInt64_; }
|
| 2298 | }
|
| 2299 |
|
| 2300 | public const int DefaultUint32FieldNumber = 63;
|
| 2301 | private bool hasDefaultUint32;
|
| 2302 | private uint defaultUint32_ = 43;
|
| 2303 | public bool HasDefaultUint32 {
|
| 2304 | get { return hasDefaultUint32; }
|
| 2305 | }
|
| 2306 | [global::System.CLSCompliant(false)]
|
| 2307 | public uint DefaultUint32 {
|
| 2308 | get { return defaultUint32_; }
|
| 2309 | }
|
| 2310 |
|
| 2311 | public const int DefaultUint64FieldNumber = 64;
|
| 2312 | private bool hasDefaultUint64;
|
| 2313 | private ulong defaultUint64_ = 44UL;
|
| 2314 | public bool HasDefaultUint64 {
|
| 2315 | get { return hasDefaultUint64; }
|
| 2316 | }
|
| 2317 | [global::System.CLSCompliant(false)]
|
| 2318 | public ulong DefaultUint64 {
|
| 2319 | get { return defaultUint64_; }
|
| 2320 | }
|
| 2321 |
|
| 2322 | public const int DefaultSint32FieldNumber = 65;
|
| 2323 | private bool hasDefaultSint32;
|
| 2324 | private int defaultSint32_ = -45;
|
| 2325 | public bool HasDefaultSint32 {
|
| 2326 | get { return hasDefaultSint32; }
|
| 2327 | }
|
| 2328 | public int DefaultSint32 {
|
| 2329 | get { return defaultSint32_; }
|
| 2330 | }
|
| 2331 |
|
| 2332 | public const int DefaultSint64FieldNumber = 66;
|
| 2333 | private bool hasDefaultSint64;
|
| 2334 | private long defaultSint64_ = 46;
|
| 2335 | public bool HasDefaultSint64 {
|
| 2336 | get { return hasDefaultSint64; }
|
| 2337 | }
|
| 2338 | public long DefaultSint64 {
|
| 2339 | get { return defaultSint64_; }
|
| 2340 | }
|
| 2341 |
|
| 2342 | public const int DefaultFixed32FieldNumber = 67;
|
| 2343 | private bool hasDefaultFixed32;
|
| 2344 | private uint defaultFixed32_ = 47;
|
| 2345 | public bool HasDefaultFixed32 {
|
| 2346 | get { return hasDefaultFixed32; }
|
| 2347 | }
|
| 2348 | [global::System.CLSCompliant(false)]
|
| 2349 | public uint DefaultFixed32 {
|
| 2350 | get { return defaultFixed32_; }
|
| 2351 | }
|
| 2352 |
|
| 2353 | public const int DefaultFixed64FieldNumber = 68;
|
| 2354 | private bool hasDefaultFixed64;
|
| 2355 | private ulong defaultFixed64_ = 48;
|
| 2356 | public bool HasDefaultFixed64 {
|
| 2357 | get { return hasDefaultFixed64; }
|
| 2358 | }
|
| 2359 | [global::System.CLSCompliant(false)]
|
| 2360 | public ulong DefaultFixed64 {
|
| 2361 | get { return defaultFixed64_; }
|
| 2362 | }
|
| 2363 |
|
| 2364 | public const int DefaultSfixed32FieldNumber = 69;
|
| 2365 | private bool hasDefaultSfixed32;
|
| 2366 | private int defaultSfixed32_ = 49;
|
| 2367 | public bool HasDefaultSfixed32 {
|
| 2368 | get { return hasDefaultSfixed32; }
|
| 2369 | }
|
| 2370 | public int DefaultSfixed32 {
|
| 2371 | get { return defaultSfixed32_; }
|
| 2372 | }
|
| 2373 |
|
| 2374 | public const int DefaultSfixed64FieldNumber = 70;
|
| 2375 | private bool hasDefaultSfixed64;
|
| 2376 | private long defaultSfixed64_ = -50;
|
| 2377 | public bool HasDefaultSfixed64 {
|
| 2378 | get { return hasDefaultSfixed64; }
|
| 2379 | }
|
| 2380 | public long DefaultSfixed64 {
|
| 2381 | get { return defaultSfixed64_; }
|
| 2382 | }
|
| 2383 |
|
| 2384 | public const int DefaultFloatFieldNumber = 71;
|
| 2385 | private bool hasDefaultFloat;
|
| 2386 | private float defaultFloat_ = 51.5F;
|
| 2387 | public bool HasDefaultFloat {
|
| 2388 | get { return hasDefaultFloat; }
|
| 2389 | }
|
| 2390 | public float DefaultFloat {
|
| 2391 | get { return defaultFloat_; }
|
| 2392 | }
|
| 2393 |
|
| 2394 | public const int DefaultDoubleFieldNumber = 72;
|
| 2395 | private bool hasDefaultDouble;
|
| 2396 | private double defaultDouble_ = 52000D;
|
| 2397 | public bool HasDefaultDouble {
|
| 2398 | get { return hasDefaultDouble; }
|
| 2399 | }
|
| 2400 | public double DefaultDouble {
|
| 2401 | get { return defaultDouble_; }
|
| 2402 | }
|
| 2403 |
|
| 2404 | public const int DefaultBoolFieldNumber = 73;
|
| 2405 | private bool hasDefaultBool;
|
| 2406 | private bool defaultBool_ = true;
|
| 2407 | public bool HasDefaultBool {
|
| 2408 | get { return hasDefaultBool; }
|
| 2409 | }
|
| 2410 | public bool DefaultBool {
|
| 2411 | get { return defaultBool_; }
|
| 2412 | }
|
| 2413 |
|
| 2414 | public const int DefaultStringFieldNumber = 74;
|
| 2415 | private bool hasDefaultString;
|
| 2416 | private string defaultString_ = "hello";
|
| 2417 | public bool HasDefaultString {
|
| 2418 | get { return hasDefaultString; }
|
| 2419 | }
|
| 2420 | public string DefaultString {
|
| 2421 | get { return defaultString_; }
|
| 2422 | }
|
| 2423 |
|
| 2424 | public const int DefaultBytesFieldNumber = 75;
|
| 2425 | private bool hasDefaultBytes;
|
| 2426 | private pb::ByteString defaultBytes_ = ByteString.FromBase64("d29ybGQ=");
|
| 2427 | public bool HasDefaultBytes {
|
| 2428 | get { return hasDefaultBytes; }
|
| 2429 | }
|
| 2430 | public pb::ByteString DefaultBytes {
|
| 2431 | get { return defaultBytes_; }
|
| 2432 | }
|
| 2433 |
|
| 2434 | public const int DefaultNestedEnumFieldNumber = 81;
|
| 2435 | private bool hasDefaultNestedEnum;
|
| 2436 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR;
|
| 2437 | public bool HasDefaultNestedEnum {
|
| 2438 | get { return hasDefaultNestedEnum; }
|
| 2439 | }
|
| 2440 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
|
| 2441 | get { return defaultNestedEnum_; }
|
| 2442 | }
|
| 2443 |
|
| 2444 | public const int DefaultForeignEnumFieldNumber = 82;
|
| 2445 | private bool hasDefaultForeignEnum;
|
| 2446 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
|
| 2447 | public bool HasDefaultForeignEnum {
|
| 2448 | get { return hasDefaultForeignEnum; }
|
| 2449 | }
|
| 2450 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
|
| 2451 | get { return defaultForeignEnum_; }
|
| 2452 | }
|
| 2453 |
|
| 2454 | public const int DefaultImportEnumFieldNumber = 83;
|
| 2455 | private bool hasDefaultImportEnum;
|
| 2456 | private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR;
|
| 2457 | public bool HasDefaultImportEnum {
|
| 2458 | get { return hasDefaultImportEnum; }
|
| 2459 | }
|
| 2460 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum {
|
| 2461 | get { return defaultImportEnum_; }
|
| 2462 | }
|
| 2463 |
|
| 2464 | public const int DefaultStringPieceFieldNumber = 84;
|
| 2465 | private bool hasDefaultStringPiece;
|
| 2466 | private string defaultStringPiece_ = "abc";
|
| 2467 | public bool HasDefaultStringPiece {
|
| 2468 | get { return hasDefaultStringPiece; }
|
| 2469 | }
|
| 2470 | public string DefaultStringPiece {
|
| 2471 | get { return defaultStringPiece_; }
|
| 2472 | }
|
| 2473 |
|
| 2474 | public const int DefaultCordFieldNumber = 85;
|
| 2475 | private bool hasDefaultCord;
|
| 2476 | private string defaultCord_ = "123";
|
| 2477 | public bool HasDefaultCord {
|
| 2478 | get { return hasDefaultCord; }
|
| 2479 | }
|
| 2480 | public string DefaultCord {
|
| 2481 | get { return defaultCord_; }
|
| 2482 | }
|
| 2483 |
|
| 2484 | public override bool IsInitialized {
|
| 2485 | get {
|
| 2486 | return true;
|
| 2487 | }
|
| 2488 | }
|
| 2489 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2490 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2491 | int size = SerializedSize;
|
| 2492 | if (HasOptionalInt32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2493 | output.WriteInt32(1, "optional_int32", OptionalInt32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2494 | }
|
| 2495 | if (HasOptionalInt64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2496 | output.WriteInt64(2, "optional_int64", OptionalInt64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2497 | }
|
| 2498 | if (HasOptionalUint32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2499 | output.WriteUInt32(3, "optional_uint32", OptionalUint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2500 | }
|
| 2501 | if (HasOptionalUint64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2502 | output.WriteUInt64(4, "optional_uint64", OptionalUint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2503 | }
|
| 2504 | if (HasOptionalSint32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2505 | output.WriteSInt32(5, "optional_sint32", OptionalSint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2506 | }
|
| 2507 | if (HasOptionalSint64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2508 | output.WriteSInt64(6, "optional_sint64", OptionalSint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2509 | }
|
| 2510 | if (HasOptionalFixed32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2511 | output.WriteFixed32(7, "optional_fixed32", OptionalFixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2512 | }
|
| 2513 | if (HasOptionalFixed64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2514 | output.WriteFixed64(8, "optional_fixed64", OptionalFixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2515 | }
|
| 2516 | if (HasOptionalSfixed32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2517 | output.WriteSFixed32(9, "optional_sfixed32", OptionalSfixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2518 | }
|
| 2519 | if (HasOptionalSfixed64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2520 | output.WriteSFixed64(10, "optional_sfixed64", OptionalSfixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2521 | }
|
| 2522 | if (HasOptionalFloat) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2523 | output.WriteFloat(11, "optional_float", OptionalFloat);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2524 | }
|
| 2525 | if (HasOptionalDouble) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2526 | output.WriteDouble(12, "optional_double", OptionalDouble);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2527 | }
|
| 2528 | if (HasOptionalBool) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2529 | output.WriteBool(13, "optional_bool", OptionalBool);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2530 | }
|
| 2531 | if (HasOptionalString) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2532 | output.WriteString(14, "optional_string", OptionalString);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2533 | }
|
| 2534 | if (HasOptionalBytes) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2535 | output.WriteBytes(15, "optional_bytes", OptionalBytes);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2536 | }
|
| 2537 | if (HasOptionalGroup) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2538 | output.WriteGroup(16, "optionalgroup", OptionalGroup);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2539 | }
|
| 2540 | if (HasOptionalNestedMessage) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2541 | output.WriteMessage(18, "optional_nested_message", OptionalNestedMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2542 | }
|
| 2543 | if (HasOptionalForeignMessage) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2544 | output.WriteMessage(19, "optional_foreign_message", OptionalForeignMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2545 | }
|
| 2546 | if (HasOptionalImportMessage) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2547 | output.WriteMessage(20, "optional_import_message", OptionalImportMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2548 | }
|
| 2549 | if (HasOptionalNestedEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2550 | output.WriteEnum(21, "optional_nested_enum", (int) OptionalNestedEnum, OptionalNestedEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2551 | }
|
| 2552 | if (HasOptionalForeignEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2553 | output.WriteEnum(22, "optional_foreign_enum", (int) OptionalForeignEnum, OptionalForeignEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2554 | }
|
| 2555 | if (HasOptionalImportEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2556 | output.WriteEnum(23, "optional_import_enum", (int) OptionalImportEnum, OptionalImportEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2557 | }
|
| 2558 | if (HasOptionalStringPiece) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2559 | output.WriteString(24, "optional_string_piece", OptionalStringPiece);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2560 | }
|
| 2561 | if (HasOptionalCord) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2562 | output.WriteString(25, "optional_cord", OptionalCord);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2563 | }
|
| 2564 | if (repeatedInt32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2565 | output.WriteArray(pbd::FieldType.Int32, 31, "repeated_int32", repeatedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2566 | }
|
| 2567 | if (repeatedInt64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2568 | output.WriteArray(pbd::FieldType.Int64, 32, "repeated_int64", repeatedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2569 | }
|
| 2570 | if (repeatedUint32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2571 | output.WriteArray(pbd::FieldType.UInt32, 33, "repeated_uint32", repeatedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2572 | }
|
| 2573 | if (repeatedUint64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2574 | output.WriteArray(pbd::FieldType.UInt64, 34, "repeated_uint64", repeatedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2575 | }
|
| 2576 | if (repeatedSint32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2577 | output.WriteArray(pbd::FieldType.SInt32, 35, "repeated_sint32", repeatedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2578 | }
|
| 2579 | if (repeatedSint64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2580 | output.WriteArray(pbd::FieldType.SInt64, 36, "repeated_sint64", repeatedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2581 | }
|
| 2582 | if (repeatedFixed32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2583 | output.WriteArray(pbd::FieldType.Fixed32, 37, "repeated_fixed32", repeatedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2584 | }
|
| 2585 | if (repeatedFixed64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2586 | output.WriteArray(pbd::FieldType.Fixed64, 38, "repeated_fixed64", repeatedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2587 | }
|
| 2588 | if (repeatedSfixed32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2589 | output.WriteArray(pbd::FieldType.SFixed32, 39, "repeated_sfixed32", repeatedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2590 | }
|
| 2591 | if (repeatedSfixed64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2592 | output.WriteArray(pbd::FieldType.SFixed64, 40, "repeated_sfixed64", repeatedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2593 | }
|
| 2594 | if (repeatedFloat_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2595 | output.WriteArray(pbd::FieldType.Float, 41, "repeated_float", repeatedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2596 | }
|
| 2597 | if (repeatedDouble_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2598 | output.WriteArray(pbd::FieldType.Double, 42, "repeated_double", repeatedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2599 | }
|
| 2600 | if (repeatedBool_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2601 | output.WriteArray(pbd::FieldType.Bool, 43, "repeated_bool", repeatedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2602 | }
|
| 2603 | if (repeatedString_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2604 | output.WriteArray(pbd::FieldType.String, 44, "repeated_string", repeatedString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2605 | }
|
| 2606 | if (repeatedBytes_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2607 | output.WriteArray(pbd::FieldType.Bytes, 45, "repeated_bytes", repeatedBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2608 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2609 | if (repeatedGroup_.Count > 0) {
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2610 | output.WriteArray(pbd::FieldType.Group, 46, "repeatedgroup", repeatedGroup_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2611 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2612 | if (repeatedNestedMessage_.Count > 0) {
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2613 | output.WriteArray(pbd::FieldType.Message, 48, "repeated_nested_message", repeatedNestedMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2614 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2615 | if (repeatedForeignMessage_.Count > 0) {
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2616 | output.WriteArray(pbd::FieldType.Message, 49, "repeated_foreign_message", repeatedForeignMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2617 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2618 | if (repeatedImportMessage_.Count > 0) {
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2619 | output.WriteArray(pbd::FieldType.Message, 50, "repeated_import_message", repeatedImportMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2620 | }
|
| 2621 | if (repeatedNestedEnum_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2622 | output.WriteArray(pbd::FieldType.Enum, 51, "repeated_nested_enum", repeatedNestedEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2623 | }
|
| 2624 | if (repeatedForeignEnum_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2625 | output.WriteArray(pbd::FieldType.Enum, 52, "repeated_foreign_enum", repeatedForeignEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2626 | }
|
| 2627 | if (repeatedImportEnum_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2628 | output.WriteArray(pbd::FieldType.Enum, 53, "repeated_import_enum", repeatedImportEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2629 | }
|
| 2630 | if (repeatedStringPiece_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2631 | output.WriteArray(pbd::FieldType.String, 54, "repeated_string_piece", repeatedStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2632 | }
|
| 2633 | if (repeatedCord_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2634 | output.WriteArray(pbd::FieldType.String, 55, "repeated_cord", repeatedCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2635 | }
|
| 2636 | if (HasDefaultInt32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2637 | output.WriteInt32(61, "default_int32", DefaultInt32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2638 | }
|
| 2639 | if (HasDefaultInt64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2640 | output.WriteInt64(62, "default_int64", DefaultInt64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2641 | }
|
| 2642 | if (HasDefaultUint32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2643 | output.WriteUInt32(63, "default_uint32", DefaultUint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2644 | }
|
| 2645 | if (HasDefaultUint64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2646 | output.WriteUInt64(64, "default_uint64", DefaultUint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2647 | }
|
| 2648 | if (HasDefaultSint32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2649 | output.WriteSInt32(65, "default_sint32", DefaultSint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2650 | }
|
| 2651 | if (HasDefaultSint64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2652 | output.WriteSInt64(66, "default_sint64", DefaultSint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2653 | }
|
| 2654 | if (HasDefaultFixed32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2655 | output.WriteFixed32(67, "default_fixed32", DefaultFixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2656 | }
|
| 2657 | if (HasDefaultFixed64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2658 | output.WriteFixed64(68, "default_fixed64", DefaultFixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2659 | }
|
| 2660 | if (HasDefaultSfixed32) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2661 | output.WriteSFixed32(69, "default_sfixed32", DefaultSfixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2662 | }
|
| 2663 | if (HasDefaultSfixed64) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2664 | output.WriteSFixed64(70, "default_sfixed64", DefaultSfixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2665 | }
|
| 2666 | if (HasDefaultFloat) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2667 | output.WriteFloat(71, "default_float", DefaultFloat);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2668 | }
|
| 2669 | if (HasDefaultDouble) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2670 | output.WriteDouble(72, "default_double", DefaultDouble);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2671 | }
|
| 2672 | if (HasDefaultBool) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2673 | output.WriteBool(73, "default_bool", DefaultBool);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2674 | }
|
| 2675 | if (HasDefaultString) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2676 | output.WriteString(74, "default_string", DefaultString);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2677 | }
|
| 2678 | if (HasDefaultBytes) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2679 | output.WriteBytes(75, "default_bytes", DefaultBytes);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2680 | }
|
| 2681 | if (HasDefaultNestedEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2682 | output.WriteEnum(81, "default_nested_enum", (int) DefaultNestedEnum, DefaultNestedEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2683 | }
|
| 2684 | if (HasDefaultForeignEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2685 | output.WriteEnum(82, "default_foreign_enum", (int) DefaultForeignEnum, DefaultForeignEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2686 | }
|
| 2687 | if (HasDefaultImportEnum) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2688 | output.WriteEnum(83, "default_import_enum", (int) DefaultImportEnum, DefaultImportEnum.ToString());
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2689 | }
|
| 2690 | if (HasDefaultStringPiece) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2691 | output.WriteString(84, "default_string_piece", DefaultStringPiece);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2692 | }
|
| 2693 | if (HasDefaultCord) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2694 | output.WriteString(85, "default_cord", DefaultCord);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2695 | }
|
| 2696 | }
|
| 2697 |
|
| 2698 | private int memoizedSerializedSize = -1;
|
| 2699 | public override int SerializedSize {
|
| 2700 | get {
|
| 2701 | int size = memoizedSerializedSize;
|
| 2702 | if (size != -1) return size;
|
| 2703 |
|
| 2704 | size = 0;
|
| 2705 | if (HasOptionalInt32) {
|
| 2706 | size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
|
| 2707 | }
|
| 2708 | if (HasOptionalInt64) {
|
| 2709 | size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
|
| 2710 | }
|
| 2711 | if (HasOptionalUint32) {
|
| 2712 | size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
|
| 2713 | }
|
| 2714 | if (HasOptionalUint64) {
|
| 2715 | size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
|
| 2716 | }
|
| 2717 | if (HasOptionalSint32) {
|
| 2718 | size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
|
| 2719 | }
|
| 2720 | if (HasOptionalSint64) {
|
| 2721 | size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
|
| 2722 | }
|
| 2723 | if (HasOptionalFixed32) {
|
| 2724 | size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
|
| 2725 | }
|
| 2726 | if (HasOptionalFixed64) {
|
| 2727 | size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
|
| 2728 | }
|
| 2729 | if (HasOptionalSfixed32) {
|
| 2730 | size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
|
| 2731 | }
|
| 2732 | if (HasOptionalSfixed64) {
|
| 2733 | size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
|
| 2734 | }
|
| 2735 | if (HasOptionalFloat) {
|
| 2736 | size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
|
| 2737 | }
|
| 2738 | if (HasOptionalDouble) {
|
| 2739 | size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
|
| 2740 | }
|
| 2741 | if (HasOptionalBool) {
|
| 2742 | size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
|
| 2743 | }
|
| 2744 | if (HasOptionalString) {
|
| 2745 | size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
|
| 2746 | }
|
| 2747 | if (HasOptionalBytes) {
|
| 2748 | size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
|
| 2749 | }
|
| 2750 | if (HasOptionalGroup) {
|
| 2751 | size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
|
| 2752 | }
|
| 2753 | if (HasOptionalNestedMessage) {
|
| 2754 | size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
|
| 2755 | }
|
| 2756 | if (HasOptionalForeignMessage) {
|
| 2757 | size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
|
| 2758 | }
|
| 2759 | if (HasOptionalImportMessage) {
|
| 2760 | size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
|
| 2761 | }
|
| 2762 | if (HasOptionalNestedEnum) {
|
| 2763 | size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum);
|
| 2764 | }
|
| 2765 | if (HasOptionalForeignEnum) {
|
| 2766 | size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum);
|
| 2767 | }
|
| 2768 | if (HasOptionalImportEnum) {
|
| 2769 | size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum);
|
| 2770 | }
|
| 2771 | if (HasOptionalStringPiece) {
|
| 2772 | size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
|
| 2773 | }
|
| 2774 | if (HasOptionalCord) {
|
| 2775 | size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
|
| 2776 | }
|
| 2777 | {
|
| 2778 | int dataSize = 0;
|
| 2779 | foreach (int element in RepeatedInt32List) {
|
| 2780 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 2781 | }
|
| 2782 | size += dataSize;
|
| 2783 | size += 2 * repeatedInt32_.Count;
|
| 2784 | }
|
| 2785 | {
|
| 2786 | int dataSize = 0;
|
| 2787 | foreach (long element in RepeatedInt64List) {
|
| 2788 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
|
| 2789 | }
|
| 2790 | size += dataSize;
|
| 2791 | size += 2 * repeatedInt64_.Count;
|
| 2792 | }
|
| 2793 | {
|
| 2794 | int dataSize = 0;
|
| 2795 | foreach (uint element in RepeatedUint32List) {
|
| 2796 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
|
| 2797 | }
|
| 2798 | size += dataSize;
|
| 2799 | size += 2 * repeatedUint32_.Count;
|
| 2800 | }
|
| 2801 | {
|
| 2802 | int dataSize = 0;
|
| 2803 | foreach (ulong element in RepeatedUint64List) {
|
| 2804 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
|
| 2805 | }
|
| 2806 | size += dataSize;
|
| 2807 | size += 2 * repeatedUint64_.Count;
|
| 2808 | }
|
| 2809 | {
|
| 2810 | int dataSize = 0;
|
| 2811 | foreach (int element in RepeatedSint32List) {
|
| 2812 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
|
| 2813 | }
|
| 2814 | size += dataSize;
|
| 2815 | size += 2 * repeatedSint32_.Count;
|
| 2816 | }
|
| 2817 | {
|
| 2818 | int dataSize = 0;
|
| 2819 | foreach (long element in RepeatedSint64List) {
|
| 2820 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
|
| 2821 | }
|
| 2822 | size += dataSize;
|
| 2823 | size += 2 * repeatedSint64_.Count;
|
| 2824 | }
|
| 2825 | {
|
| 2826 | int dataSize = 0;
|
| 2827 | dataSize = 4 * repeatedFixed32_.Count;
|
| 2828 | size += dataSize;
|
| 2829 | size += 2 * repeatedFixed32_.Count;
|
| 2830 | }
|
| 2831 | {
|
| 2832 | int dataSize = 0;
|
| 2833 | dataSize = 8 * repeatedFixed64_.Count;
|
| 2834 | size += dataSize;
|
| 2835 | size += 2 * repeatedFixed64_.Count;
|
| 2836 | }
|
| 2837 | {
|
| 2838 | int dataSize = 0;
|
| 2839 | dataSize = 4 * repeatedSfixed32_.Count;
|
| 2840 | size += dataSize;
|
| 2841 | size += 2 * repeatedSfixed32_.Count;
|
| 2842 | }
|
| 2843 | {
|
| 2844 | int dataSize = 0;
|
| 2845 | dataSize = 8 * repeatedSfixed64_.Count;
|
| 2846 | size += dataSize;
|
| 2847 | size += 2 * repeatedSfixed64_.Count;
|
| 2848 | }
|
| 2849 | {
|
| 2850 | int dataSize = 0;
|
| 2851 | dataSize = 4 * repeatedFloat_.Count;
|
| 2852 | size += dataSize;
|
| 2853 | size += 2 * repeatedFloat_.Count;
|
| 2854 | }
|
| 2855 | {
|
| 2856 | int dataSize = 0;
|
| 2857 | dataSize = 8 * repeatedDouble_.Count;
|
| 2858 | size += dataSize;
|
| 2859 | size += 2 * repeatedDouble_.Count;
|
| 2860 | }
|
| 2861 | {
|
| 2862 | int dataSize = 0;
|
| 2863 | dataSize = 1 * repeatedBool_.Count;
|
| 2864 | size += dataSize;
|
| 2865 | size += 2 * repeatedBool_.Count;
|
| 2866 | }
|
| 2867 | {
|
| 2868 | int dataSize = 0;
|
| 2869 | foreach (string element in RepeatedStringList) {
|
| 2870 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 2871 | }
|
| 2872 | size += dataSize;
|
| 2873 | size += 2 * repeatedString_.Count;
|
| 2874 | }
|
| 2875 | {
|
| 2876 | int dataSize = 0;
|
| 2877 | foreach (pb::ByteString element in RepeatedBytesList) {
|
| 2878 | dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
|
| 2879 | }
|
| 2880 | size += dataSize;
|
| 2881 | size += 2 * repeatedBytes_.Count;
|
| 2882 | }
|
| 2883 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup element in RepeatedGroupList) {
|
| 2884 | size += pb::CodedOutputStream.ComputeGroupSize(46, element);
|
| 2885 | }
|
| 2886 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage element in RepeatedNestedMessageList) {
|
| 2887 | size += pb::CodedOutputStream.ComputeMessageSize(48, element);
|
| 2888 | }
|
| 2889 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite element in RepeatedForeignMessageList) {
|
| 2890 | size += pb::CodedOutputStream.ComputeMessageSize(49, element);
|
| 2891 | }
|
| 2892 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessageLite element in RepeatedImportMessageList) {
|
| 2893 | size += pb::CodedOutputStream.ComputeMessageSize(50, element);
|
| 2894 | }
|
| 2895 | {
|
| 2896 | int dataSize = 0;
|
| 2897 | if (repeatedNestedEnum_.Count > 0) {
|
| 2898 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum element in repeatedNestedEnum_) {
|
| 2899 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 2900 | }
|
| 2901 | size += dataSize;
|
| 2902 | size += 2 * repeatedNestedEnum_.Count;
|
| 2903 | }
|
| 2904 | }
|
| 2905 | {
|
| 2906 | int dataSize = 0;
|
| 2907 | if (repeatedForeignEnum_.Count > 0) {
|
| 2908 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in repeatedForeignEnum_) {
|
| 2909 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 2910 | }
|
| 2911 | size += dataSize;
|
| 2912 | size += 2 * repeatedForeignEnum_.Count;
|
| 2913 | }
|
| 2914 | }
|
| 2915 | {
|
| 2916 | int dataSize = 0;
|
| 2917 | if (repeatedImportEnum_.Count > 0) {
|
| 2918 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnumLite element in repeatedImportEnum_) {
|
| 2919 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 2920 | }
|
| 2921 | size += dataSize;
|
| 2922 | size += 2 * repeatedImportEnum_.Count;
|
| 2923 | }
|
| 2924 | }
|
| 2925 | {
|
| 2926 | int dataSize = 0;
|
| 2927 | foreach (string element in RepeatedStringPieceList) {
|
| 2928 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 2929 | }
|
| 2930 | size += dataSize;
|
| 2931 | size += 2 * repeatedStringPiece_.Count;
|
| 2932 | }
|
| 2933 | {
|
| 2934 | int dataSize = 0;
|
| 2935 | foreach (string element in RepeatedCordList) {
|
| 2936 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 2937 | }
|
| 2938 | size += dataSize;
|
| 2939 | size += 2 * repeatedCord_.Count;
|
| 2940 | }
|
| 2941 | if (HasDefaultInt32) {
|
| 2942 | size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
|
| 2943 | }
|
| 2944 | if (HasDefaultInt64) {
|
| 2945 | size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
|
| 2946 | }
|
| 2947 | if (HasDefaultUint32) {
|
| 2948 | size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
|
| 2949 | }
|
| 2950 | if (HasDefaultUint64) {
|
| 2951 | size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
|
| 2952 | }
|
| 2953 | if (HasDefaultSint32) {
|
| 2954 | size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
|
| 2955 | }
|
| 2956 | if (HasDefaultSint64) {
|
| 2957 | size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
|
| 2958 | }
|
| 2959 | if (HasDefaultFixed32) {
|
| 2960 | size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
|
| 2961 | }
|
| 2962 | if (HasDefaultFixed64) {
|
| 2963 | size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
|
| 2964 | }
|
| 2965 | if (HasDefaultSfixed32) {
|
| 2966 | size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
|
| 2967 | }
|
| 2968 | if (HasDefaultSfixed64) {
|
| 2969 | size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
|
| 2970 | }
|
| 2971 | if (HasDefaultFloat) {
|
| 2972 | size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
|
| 2973 | }
|
| 2974 | if (HasDefaultDouble) {
|
| 2975 | size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
|
| 2976 | }
|
| 2977 | if (HasDefaultBool) {
|
| 2978 | size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
|
| 2979 | }
|
| 2980 | if (HasDefaultString) {
|
| 2981 | size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
|
| 2982 | }
|
| 2983 | if (HasDefaultBytes) {
|
| 2984 | size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
|
| 2985 | }
|
| 2986 | if (HasDefaultNestedEnum) {
|
| 2987 | size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum);
|
| 2988 | }
|
| 2989 | if (HasDefaultForeignEnum) {
|
| 2990 | size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum);
|
| 2991 | }
|
| 2992 | if (HasDefaultImportEnum) {
|
| 2993 | size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum);
|
| 2994 | }
|
| 2995 | if (HasDefaultStringPiece) {
|
| 2996 | size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
|
| 2997 | }
|
| 2998 | if (HasDefaultCord) {
|
| 2999 | size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
|
| 3000 | }
|
| 3001 | memoizedSerializedSize = size;
|
| 3002 | return size;
|
| 3003 | }
|
| 3004 | }
|
| 3005 |
|
| 3006 | #region Lite runtime methods
|
| 3007 | public override int GetHashCode() {
|
| 3008 | int hash = GetType().GetHashCode();
|
| 3009 | if (hasOptionalInt32) hash ^= optionalInt32_.GetHashCode();
|
| 3010 | if (hasOptionalInt64) hash ^= optionalInt64_.GetHashCode();
|
| 3011 | if (hasOptionalUint32) hash ^= optionalUint32_.GetHashCode();
|
| 3012 | if (hasOptionalUint64) hash ^= optionalUint64_.GetHashCode();
|
| 3013 | if (hasOptionalSint32) hash ^= optionalSint32_.GetHashCode();
|
| 3014 | if (hasOptionalSint64) hash ^= optionalSint64_.GetHashCode();
|
| 3015 | if (hasOptionalFixed32) hash ^= optionalFixed32_.GetHashCode();
|
| 3016 | if (hasOptionalFixed64) hash ^= optionalFixed64_.GetHashCode();
|
| 3017 | if (hasOptionalSfixed32) hash ^= optionalSfixed32_.GetHashCode();
|
| 3018 | if (hasOptionalSfixed64) hash ^= optionalSfixed64_.GetHashCode();
|
| 3019 | if (hasOptionalFloat) hash ^= optionalFloat_.GetHashCode();
|
| 3020 | if (hasOptionalDouble) hash ^= optionalDouble_.GetHashCode();
|
| 3021 | if (hasOptionalBool) hash ^= optionalBool_.GetHashCode();
|
| 3022 | if (hasOptionalString) hash ^= optionalString_.GetHashCode();
|
| 3023 | if (hasOptionalBytes) hash ^= optionalBytes_.GetHashCode();
|
| 3024 | if (hasOptionalGroup) hash ^= optionalGroup_.GetHashCode();
|
| 3025 | if (hasOptionalNestedMessage) hash ^= optionalNestedMessage_.GetHashCode();
|
| 3026 | if (hasOptionalForeignMessage) hash ^= optionalForeignMessage_.GetHashCode();
|
| 3027 | if (hasOptionalImportMessage) hash ^= optionalImportMessage_.GetHashCode();
|
| 3028 | if (hasOptionalNestedEnum) hash ^= optionalNestedEnum_.GetHashCode();
|
| 3029 | if (hasOptionalForeignEnum) hash ^= optionalForeignEnum_.GetHashCode();
|
| 3030 | if (hasOptionalImportEnum) hash ^= optionalImportEnum_.GetHashCode();
|
| 3031 | if (hasOptionalStringPiece) hash ^= optionalStringPiece_.GetHashCode();
|
| 3032 | if (hasOptionalCord) hash ^= optionalCord_.GetHashCode();
|
| 3033 | foreach(int i in repeatedInt32_)
|
| 3034 | hash ^= i.GetHashCode();
|
| 3035 | foreach(long i in repeatedInt64_)
|
| 3036 | hash ^= i.GetHashCode();
|
| 3037 | foreach(uint i in repeatedUint32_)
|
| 3038 | hash ^= i.GetHashCode();
|
| 3039 | foreach(ulong i in repeatedUint64_)
|
| 3040 | hash ^= i.GetHashCode();
|
| 3041 | foreach(int i in repeatedSint32_)
|
| 3042 | hash ^= i.GetHashCode();
|
| 3043 | foreach(long i in repeatedSint64_)
|
| 3044 | hash ^= i.GetHashCode();
|
| 3045 | foreach(uint i in repeatedFixed32_)
|
| 3046 | hash ^= i.GetHashCode();
|
| 3047 | foreach(ulong i in repeatedFixed64_)
|
| 3048 | hash ^= i.GetHashCode();
|
| 3049 | foreach(int i in repeatedSfixed32_)
|
| 3050 | hash ^= i.GetHashCode();
|
| 3051 | foreach(long i in repeatedSfixed64_)
|
| 3052 | hash ^= i.GetHashCode();
|
| 3053 | foreach(float i in repeatedFloat_)
|
| 3054 | hash ^= i.GetHashCode();
|
| 3055 | foreach(double i in repeatedDouble_)
|
| 3056 | hash ^= i.GetHashCode();
|
| 3057 | foreach(bool i in repeatedBool_)
|
| 3058 | hash ^= i.GetHashCode();
|
| 3059 | foreach(string i in repeatedString_)
|
| 3060 | hash ^= i.GetHashCode();
|
| 3061 | foreach(pb::ByteString i in repeatedBytes_)
|
| 3062 | hash ^= i.GetHashCode();
|
| 3063 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup i in repeatedGroup_)
|
| 3064 | hash ^= i.GetHashCode();
|
| 3065 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage i in repeatedNestedMessage_)
|
| 3066 | hash ^= i.GetHashCode();
|
| 3067 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite i in repeatedForeignMessage_)
|
| 3068 | hash ^= i.GetHashCode();
|
| 3069 | foreach(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite i in repeatedImportMessage_)
|
| 3070 | hash ^= i.GetHashCode();
|
| 3071 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum i in repeatedNestedEnum_)
|
| 3072 | hash ^= i.GetHashCode();
|
| 3073 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in repeatedForeignEnum_)
|
| 3074 | hash ^= i.GetHashCode();
|
| 3075 | foreach(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite i in repeatedImportEnum_)
|
| 3076 | hash ^= i.GetHashCode();
|
| 3077 | foreach(string i in repeatedStringPiece_)
|
| 3078 | hash ^= i.GetHashCode();
|
| 3079 | foreach(string i in repeatedCord_)
|
| 3080 | hash ^= i.GetHashCode();
|
| 3081 | if (hasDefaultInt32) hash ^= defaultInt32_.GetHashCode();
|
| 3082 | if (hasDefaultInt64) hash ^= defaultInt64_.GetHashCode();
|
| 3083 | if (hasDefaultUint32) hash ^= defaultUint32_.GetHashCode();
|
| 3084 | if (hasDefaultUint64) hash ^= defaultUint64_.GetHashCode();
|
| 3085 | if (hasDefaultSint32) hash ^= defaultSint32_.GetHashCode();
|
| 3086 | if (hasDefaultSint64) hash ^= defaultSint64_.GetHashCode();
|
| 3087 | if (hasDefaultFixed32) hash ^= defaultFixed32_.GetHashCode();
|
| 3088 | if (hasDefaultFixed64) hash ^= defaultFixed64_.GetHashCode();
|
| 3089 | if (hasDefaultSfixed32) hash ^= defaultSfixed32_.GetHashCode();
|
| 3090 | if (hasDefaultSfixed64) hash ^= defaultSfixed64_.GetHashCode();
|
| 3091 | if (hasDefaultFloat) hash ^= defaultFloat_.GetHashCode();
|
| 3092 | if (hasDefaultDouble) hash ^= defaultDouble_.GetHashCode();
|
| 3093 | if (hasDefaultBool) hash ^= defaultBool_.GetHashCode();
|
| 3094 | if (hasDefaultString) hash ^= defaultString_.GetHashCode();
|
| 3095 | if (hasDefaultBytes) hash ^= defaultBytes_.GetHashCode();
|
| 3096 | if (hasDefaultNestedEnum) hash ^= defaultNestedEnum_.GetHashCode();
|
| 3097 | if (hasDefaultForeignEnum) hash ^= defaultForeignEnum_.GetHashCode();
|
| 3098 | if (hasDefaultImportEnum) hash ^= defaultImportEnum_.GetHashCode();
|
| 3099 | if (hasDefaultStringPiece) hash ^= defaultStringPiece_.GetHashCode();
|
| 3100 | if (hasDefaultCord) hash ^= defaultCord_.GetHashCode();
|
| 3101 | return hash;
|
| 3102 | }
|
| 3103 |
|
| 3104 | public override bool Equals(object obj) {
|
| 3105 | TestAllTypesLite other = obj as TestAllTypesLite;
|
| 3106 | if (other == null) return false;
|
| 3107 | if (hasOptionalInt32 != other.hasOptionalInt32 || (hasOptionalInt32 && !optionalInt32_.Equals(other.optionalInt32_))) return false;
|
| 3108 | if (hasOptionalInt64 != other.hasOptionalInt64 || (hasOptionalInt64 && !optionalInt64_.Equals(other.optionalInt64_))) return false;
|
| 3109 | if (hasOptionalUint32 != other.hasOptionalUint32 || (hasOptionalUint32 && !optionalUint32_.Equals(other.optionalUint32_))) return false;
|
| 3110 | if (hasOptionalUint64 != other.hasOptionalUint64 || (hasOptionalUint64 && !optionalUint64_.Equals(other.optionalUint64_))) return false;
|
| 3111 | if (hasOptionalSint32 != other.hasOptionalSint32 || (hasOptionalSint32 && !optionalSint32_.Equals(other.optionalSint32_))) return false;
|
| 3112 | if (hasOptionalSint64 != other.hasOptionalSint64 || (hasOptionalSint64 && !optionalSint64_.Equals(other.optionalSint64_))) return false;
|
| 3113 | if (hasOptionalFixed32 != other.hasOptionalFixed32 || (hasOptionalFixed32 && !optionalFixed32_.Equals(other.optionalFixed32_))) return false;
|
| 3114 | if (hasOptionalFixed64 != other.hasOptionalFixed64 || (hasOptionalFixed64 && !optionalFixed64_.Equals(other.optionalFixed64_))) return false;
|
| 3115 | if (hasOptionalSfixed32 != other.hasOptionalSfixed32 || (hasOptionalSfixed32 && !optionalSfixed32_.Equals(other.optionalSfixed32_))) return false;
|
| 3116 | if (hasOptionalSfixed64 != other.hasOptionalSfixed64 || (hasOptionalSfixed64 && !optionalSfixed64_.Equals(other.optionalSfixed64_))) return false;
|
| 3117 | if (hasOptionalFloat != other.hasOptionalFloat || (hasOptionalFloat && !optionalFloat_.Equals(other.optionalFloat_))) return false;
|
| 3118 | if (hasOptionalDouble != other.hasOptionalDouble || (hasOptionalDouble && !optionalDouble_.Equals(other.optionalDouble_))) return false;
|
| 3119 | if (hasOptionalBool != other.hasOptionalBool || (hasOptionalBool && !optionalBool_.Equals(other.optionalBool_))) return false;
|
| 3120 | if (hasOptionalString != other.hasOptionalString || (hasOptionalString && !optionalString_.Equals(other.optionalString_))) return false;
|
| 3121 | if (hasOptionalBytes != other.hasOptionalBytes || (hasOptionalBytes && !optionalBytes_.Equals(other.optionalBytes_))) return false;
|
| 3122 | if (hasOptionalGroup != other.hasOptionalGroup || (hasOptionalGroup && !optionalGroup_.Equals(other.optionalGroup_))) return false;
|
| 3123 | if (hasOptionalNestedMessage != other.hasOptionalNestedMessage || (hasOptionalNestedMessage && !optionalNestedMessage_.Equals(other.optionalNestedMessage_))) return false;
|
| 3124 | if (hasOptionalForeignMessage != other.hasOptionalForeignMessage || (hasOptionalForeignMessage && !optionalForeignMessage_.Equals(other.optionalForeignMessage_))) return false;
|
| 3125 | if (hasOptionalImportMessage != other.hasOptionalImportMessage || (hasOptionalImportMessage && !optionalImportMessage_.Equals(other.optionalImportMessage_))) return false;
|
| 3126 | if (hasOptionalNestedEnum != other.hasOptionalNestedEnum || (hasOptionalNestedEnum && !optionalNestedEnum_.Equals(other.optionalNestedEnum_))) return false;
|
| 3127 | if (hasOptionalForeignEnum != other.hasOptionalForeignEnum || (hasOptionalForeignEnum && !optionalForeignEnum_.Equals(other.optionalForeignEnum_))) return false;
|
| 3128 | if (hasOptionalImportEnum != other.hasOptionalImportEnum || (hasOptionalImportEnum && !optionalImportEnum_.Equals(other.optionalImportEnum_))) return false;
|
| 3129 | if (hasOptionalStringPiece != other.hasOptionalStringPiece || (hasOptionalStringPiece && !optionalStringPiece_.Equals(other.optionalStringPiece_))) return false;
|
| 3130 | if (hasOptionalCord != other.hasOptionalCord || (hasOptionalCord && !optionalCord_.Equals(other.optionalCord_))) return false;
|
| 3131 | if(repeatedInt32_.Count != other.repeatedInt32_.Count) return false;
|
| 3132 | for(int ix=0; ix < repeatedInt32_.Count; ix++)
|
| 3133 | if(!repeatedInt32_[ix].Equals(other.repeatedInt32_[ix])) return false;
|
| 3134 | if(repeatedInt64_.Count != other.repeatedInt64_.Count) return false;
|
| 3135 | for(int ix=0; ix < repeatedInt64_.Count; ix++)
|
| 3136 | if(!repeatedInt64_[ix].Equals(other.repeatedInt64_[ix])) return false;
|
| 3137 | if(repeatedUint32_.Count != other.repeatedUint32_.Count) return false;
|
| 3138 | for(int ix=0; ix < repeatedUint32_.Count; ix++)
|
| 3139 | if(!repeatedUint32_[ix].Equals(other.repeatedUint32_[ix])) return false;
|
| 3140 | if(repeatedUint64_.Count != other.repeatedUint64_.Count) return false;
|
| 3141 | for(int ix=0; ix < repeatedUint64_.Count; ix++)
|
| 3142 | if(!repeatedUint64_[ix].Equals(other.repeatedUint64_[ix])) return false;
|
| 3143 | if(repeatedSint32_.Count != other.repeatedSint32_.Count) return false;
|
| 3144 | for(int ix=0; ix < repeatedSint32_.Count; ix++)
|
| 3145 | if(!repeatedSint32_[ix].Equals(other.repeatedSint32_[ix])) return false;
|
| 3146 | if(repeatedSint64_.Count != other.repeatedSint64_.Count) return false;
|
| 3147 | for(int ix=0; ix < repeatedSint64_.Count; ix++)
|
| 3148 | if(!repeatedSint64_[ix].Equals(other.repeatedSint64_[ix])) return false;
|
| 3149 | if(repeatedFixed32_.Count != other.repeatedFixed32_.Count) return false;
|
| 3150 | for(int ix=0; ix < repeatedFixed32_.Count; ix++)
|
| 3151 | if(!repeatedFixed32_[ix].Equals(other.repeatedFixed32_[ix])) return false;
|
| 3152 | if(repeatedFixed64_.Count != other.repeatedFixed64_.Count) return false;
|
| 3153 | for(int ix=0; ix < repeatedFixed64_.Count; ix++)
|
| 3154 | if(!repeatedFixed64_[ix].Equals(other.repeatedFixed64_[ix])) return false;
|
| 3155 | if(repeatedSfixed32_.Count != other.repeatedSfixed32_.Count) return false;
|
| 3156 | for(int ix=0; ix < repeatedSfixed32_.Count; ix++)
|
| 3157 | if(!repeatedSfixed32_[ix].Equals(other.repeatedSfixed32_[ix])) return false;
|
| 3158 | if(repeatedSfixed64_.Count != other.repeatedSfixed64_.Count) return false;
|
| 3159 | for(int ix=0; ix < repeatedSfixed64_.Count; ix++)
|
| 3160 | if(!repeatedSfixed64_[ix].Equals(other.repeatedSfixed64_[ix])) return false;
|
| 3161 | if(repeatedFloat_.Count != other.repeatedFloat_.Count) return false;
|
| 3162 | for(int ix=0; ix < repeatedFloat_.Count; ix++)
|
| 3163 | if(!repeatedFloat_[ix].Equals(other.repeatedFloat_[ix])) return false;
|
| 3164 | if(repeatedDouble_.Count != other.repeatedDouble_.Count) return false;
|
| 3165 | for(int ix=0; ix < repeatedDouble_.Count; ix++)
|
| 3166 | if(!repeatedDouble_[ix].Equals(other.repeatedDouble_[ix])) return false;
|
| 3167 | if(repeatedBool_.Count != other.repeatedBool_.Count) return false;
|
| 3168 | for(int ix=0; ix < repeatedBool_.Count; ix++)
|
| 3169 | if(!repeatedBool_[ix].Equals(other.repeatedBool_[ix])) return false;
|
| 3170 | if(repeatedString_.Count != other.repeatedString_.Count) return false;
|
| 3171 | for(int ix=0; ix < repeatedString_.Count; ix++)
|
| 3172 | if(!repeatedString_[ix].Equals(other.repeatedString_[ix])) return false;
|
| 3173 | if(repeatedBytes_.Count != other.repeatedBytes_.Count) return false;
|
| 3174 | for(int ix=0; ix < repeatedBytes_.Count; ix++)
|
| 3175 | if(!repeatedBytes_[ix].Equals(other.repeatedBytes_[ix])) return false;
|
| 3176 | if(repeatedGroup_.Count != other.repeatedGroup_.Count) return false;
|
| 3177 | for(int ix=0; ix < repeatedGroup_.Count; ix++)
|
| 3178 | if(!repeatedGroup_[ix].Equals(other.repeatedGroup_[ix])) return false;
|
| 3179 | if(repeatedNestedMessage_.Count != other.repeatedNestedMessage_.Count) return false;
|
| 3180 | for(int ix=0; ix < repeatedNestedMessage_.Count; ix++)
|
| 3181 | if(!repeatedNestedMessage_[ix].Equals(other.repeatedNestedMessage_[ix])) return false;
|
| 3182 | if(repeatedForeignMessage_.Count != other.repeatedForeignMessage_.Count) return false;
|
| 3183 | for(int ix=0; ix < repeatedForeignMessage_.Count; ix++)
|
| 3184 | if(!repeatedForeignMessage_[ix].Equals(other.repeatedForeignMessage_[ix])) return false;
|
| 3185 | if(repeatedImportMessage_.Count != other.repeatedImportMessage_.Count) return false;
|
| 3186 | for(int ix=0; ix < repeatedImportMessage_.Count; ix++)
|
| 3187 | if(!repeatedImportMessage_[ix].Equals(other.repeatedImportMessage_[ix])) return false;
|
| 3188 | if(repeatedNestedEnum_.Count != other.repeatedNestedEnum_.Count) return false;
|
| 3189 | for(int ix=0; ix < repeatedNestedEnum_.Count; ix++)
|
| 3190 | if(!repeatedNestedEnum_[ix].Equals(other.repeatedNestedEnum_[ix])) return false;
|
| 3191 | if(repeatedForeignEnum_.Count != other.repeatedForeignEnum_.Count) return false;
|
| 3192 | for(int ix=0; ix < repeatedForeignEnum_.Count; ix++)
|
| 3193 | if(!repeatedForeignEnum_[ix].Equals(other.repeatedForeignEnum_[ix])) return false;
|
| 3194 | if(repeatedImportEnum_.Count != other.repeatedImportEnum_.Count) return false;
|
| 3195 | for(int ix=0; ix < repeatedImportEnum_.Count; ix++)
|
| 3196 | if(!repeatedImportEnum_[ix].Equals(other.repeatedImportEnum_[ix])) return false;
|
| 3197 | if(repeatedStringPiece_.Count != other.repeatedStringPiece_.Count) return false;
|
| 3198 | for(int ix=0; ix < repeatedStringPiece_.Count; ix++)
|
| 3199 | if(!repeatedStringPiece_[ix].Equals(other.repeatedStringPiece_[ix])) return false;
|
| 3200 | if(repeatedCord_.Count != other.repeatedCord_.Count) return false;
|
| 3201 | for(int ix=0; ix < repeatedCord_.Count; ix++)
|
| 3202 | if(!repeatedCord_[ix].Equals(other.repeatedCord_[ix])) return false;
|
| 3203 | if (hasDefaultInt32 != other.hasDefaultInt32 || (hasDefaultInt32 && !defaultInt32_.Equals(other.defaultInt32_))) return false;
|
| 3204 | if (hasDefaultInt64 != other.hasDefaultInt64 || (hasDefaultInt64 && !defaultInt64_.Equals(other.defaultInt64_))) return false;
|
| 3205 | if (hasDefaultUint32 != other.hasDefaultUint32 || (hasDefaultUint32 && !defaultUint32_.Equals(other.defaultUint32_))) return false;
|
| 3206 | if (hasDefaultUint64 != other.hasDefaultUint64 || (hasDefaultUint64 && !defaultUint64_.Equals(other.defaultUint64_))) return false;
|
| 3207 | if (hasDefaultSint32 != other.hasDefaultSint32 || (hasDefaultSint32 && !defaultSint32_.Equals(other.defaultSint32_))) return false;
|
| 3208 | if (hasDefaultSint64 != other.hasDefaultSint64 || (hasDefaultSint64 && !defaultSint64_.Equals(other.defaultSint64_))) return false;
|
| 3209 | if (hasDefaultFixed32 != other.hasDefaultFixed32 || (hasDefaultFixed32 && !defaultFixed32_.Equals(other.defaultFixed32_))) return false;
|
| 3210 | if (hasDefaultFixed64 != other.hasDefaultFixed64 || (hasDefaultFixed64 && !defaultFixed64_.Equals(other.defaultFixed64_))) return false;
|
| 3211 | if (hasDefaultSfixed32 != other.hasDefaultSfixed32 || (hasDefaultSfixed32 && !defaultSfixed32_.Equals(other.defaultSfixed32_))) return false;
|
| 3212 | if (hasDefaultSfixed64 != other.hasDefaultSfixed64 || (hasDefaultSfixed64 && !defaultSfixed64_.Equals(other.defaultSfixed64_))) return false;
|
| 3213 | if (hasDefaultFloat != other.hasDefaultFloat || (hasDefaultFloat && !defaultFloat_.Equals(other.defaultFloat_))) return false;
|
| 3214 | if (hasDefaultDouble != other.hasDefaultDouble || (hasDefaultDouble && !defaultDouble_.Equals(other.defaultDouble_))) return false;
|
| 3215 | if (hasDefaultBool != other.hasDefaultBool || (hasDefaultBool && !defaultBool_.Equals(other.defaultBool_))) return false;
|
| 3216 | if (hasDefaultString != other.hasDefaultString || (hasDefaultString && !defaultString_.Equals(other.defaultString_))) return false;
|
| 3217 | if (hasDefaultBytes != other.hasDefaultBytes || (hasDefaultBytes && !defaultBytes_.Equals(other.defaultBytes_))) return false;
|
| 3218 | if (hasDefaultNestedEnum != other.hasDefaultNestedEnum || (hasDefaultNestedEnum && !defaultNestedEnum_.Equals(other.defaultNestedEnum_))) return false;
|
| 3219 | if (hasDefaultForeignEnum != other.hasDefaultForeignEnum || (hasDefaultForeignEnum && !defaultForeignEnum_.Equals(other.defaultForeignEnum_))) return false;
|
| 3220 | if (hasDefaultImportEnum != other.hasDefaultImportEnum || (hasDefaultImportEnum && !defaultImportEnum_.Equals(other.defaultImportEnum_))) return false;
|
| 3221 | if (hasDefaultStringPiece != other.hasDefaultStringPiece || (hasDefaultStringPiece && !defaultStringPiece_.Equals(other.defaultStringPiece_))) return false;
|
| 3222 | if (hasDefaultCord != other.hasDefaultCord || (hasDefaultCord && !defaultCord_.Equals(other.defaultCord_))) return false;
|
| 3223 | return true;
|
| 3224 | }
|
| 3225 |
|
| 3226 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 3227 | PrintField("optional_int32", hasOptionalInt32, optionalInt32_, writer);
|
| 3228 | PrintField("optional_int64", hasOptionalInt64, optionalInt64_, writer);
|
| 3229 | PrintField("optional_uint32", hasOptionalUint32, optionalUint32_, writer);
|
| 3230 | PrintField("optional_uint64", hasOptionalUint64, optionalUint64_, writer);
|
| 3231 | PrintField("optional_sint32", hasOptionalSint32, optionalSint32_, writer);
|
| 3232 | PrintField("optional_sint64", hasOptionalSint64, optionalSint64_, writer);
|
| 3233 | PrintField("optional_fixed32", hasOptionalFixed32, optionalFixed32_, writer);
|
| 3234 | PrintField("optional_fixed64", hasOptionalFixed64, optionalFixed64_, writer);
|
| 3235 | PrintField("optional_sfixed32", hasOptionalSfixed32, optionalSfixed32_, writer);
|
| 3236 | PrintField("optional_sfixed64", hasOptionalSfixed64, optionalSfixed64_, writer);
|
| 3237 | PrintField("optional_float", hasOptionalFloat, optionalFloat_, writer);
|
| 3238 | PrintField("optional_double", hasOptionalDouble, optionalDouble_, writer);
|
| 3239 | PrintField("optional_bool", hasOptionalBool, optionalBool_, writer);
|
| 3240 | PrintField("optional_string", hasOptionalString, optionalString_, writer);
|
| 3241 | PrintField("optional_bytes", hasOptionalBytes, optionalBytes_, writer);
|
| 3242 | PrintField("OptionalGroup", hasOptionalGroup, optionalGroup_, writer);
|
| 3243 | PrintField("optional_nested_message", hasOptionalNestedMessage, optionalNestedMessage_, writer);
|
| 3244 | PrintField("optional_foreign_message", hasOptionalForeignMessage, optionalForeignMessage_, writer);
|
| 3245 | PrintField("optional_import_message", hasOptionalImportMessage, optionalImportMessage_, writer);
|
| 3246 | PrintField("optional_nested_enum", hasOptionalNestedEnum, optionalNestedEnum_, writer);
|
| 3247 | PrintField("optional_foreign_enum", hasOptionalForeignEnum, optionalForeignEnum_, writer);
|
| 3248 | PrintField("optional_import_enum", hasOptionalImportEnum, optionalImportEnum_, writer);
|
| 3249 | PrintField("optional_string_piece", hasOptionalStringPiece, optionalStringPiece_, writer);
|
| 3250 | PrintField("optional_cord", hasOptionalCord, optionalCord_, writer);
|
| 3251 | PrintField("repeated_int32", repeatedInt32_, writer);
|
| 3252 | PrintField("repeated_int64", repeatedInt64_, writer);
|
| 3253 | PrintField("repeated_uint32", repeatedUint32_, writer);
|
| 3254 | PrintField("repeated_uint64", repeatedUint64_, writer);
|
| 3255 | PrintField("repeated_sint32", repeatedSint32_, writer);
|
| 3256 | PrintField("repeated_sint64", repeatedSint64_, writer);
|
| 3257 | PrintField("repeated_fixed32", repeatedFixed32_, writer);
|
| 3258 | PrintField("repeated_fixed64", repeatedFixed64_, writer);
|
| 3259 | PrintField("repeated_sfixed32", repeatedSfixed32_, writer);
|
| 3260 | PrintField("repeated_sfixed64", repeatedSfixed64_, writer);
|
| 3261 | PrintField("repeated_float", repeatedFloat_, writer);
|
| 3262 | PrintField("repeated_double", repeatedDouble_, writer);
|
| 3263 | PrintField("repeated_bool", repeatedBool_, writer);
|
| 3264 | PrintField("repeated_string", repeatedString_, writer);
|
| 3265 | PrintField("repeated_bytes", repeatedBytes_, writer);
|
| 3266 | PrintField("RepeatedGroup", repeatedGroup_, writer);
|
| 3267 | PrintField("repeated_nested_message", repeatedNestedMessage_, writer);
|
| 3268 | PrintField("repeated_foreign_message", repeatedForeignMessage_, writer);
|
| 3269 | PrintField("repeated_import_message", repeatedImportMessage_, writer);
|
| 3270 | PrintField("repeated_nested_enum", repeatedNestedEnum_, writer);
|
| 3271 | PrintField("repeated_foreign_enum", repeatedForeignEnum_, writer);
|
| 3272 | PrintField("repeated_import_enum", repeatedImportEnum_, writer);
|
| 3273 | PrintField("repeated_string_piece", repeatedStringPiece_, writer);
|
| 3274 | PrintField("repeated_cord", repeatedCord_, writer);
|
| 3275 | PrintField("default_int32", hasDefaultInt32, defaultInt32_, writer);
|
| 3276 | PrintField("default_int64", hasDefaultInt64, defaultInt64_, writer);
|
| 3277 | PrintField("default_uint32", hasDefaultUint32, defaultUint32_, writer);
|
| 3278 | PrintField("default_uint64", hasDefaultUint64, defaultUint64_, writer);
|
| 3279 | PrintField("default_sint32", hasDefaultSint32, defaultSint32_, writer);
|
| 3280 | PrintField("default_sint64", hasDefaultSint64, defaultSint64_, writer);
|
| 3281 | PrintField("default_fixed32", hasDefaultFixed32, defaultFixed32_, writer);
|
| 3282 | PrintField("default_fixed64", hasDefaultFixed64, defaultFixed64_, writer);
|
| 3283 | PrintField("default_sfixed32", hasDefaultSfixed32, defaultSfixed32_, writer);
|
| 3284 | PrintField("default_sfixed64", hasDefaultSfixed64, defaultSfixed64_, writer);
|
| 3285 | PrintField("default_float", hasDefaultFloat, defaultFloat_, writer);
|
| 3286 | PrintField("default_double", hasDefaultDouble, defaultDouble_, writer);
|
| 3287 | PrintField("default_bool", hasDefaultBool, defaultBool_, writer);
|
| 3288 | PrintField("default_string", hasDefaultString, defaultString_, writer);
|
| 3289 | PrintField("default_bytes", hasDefaultBytes, defaultBytes_, writer);
|
| 3290 | PrintField("default_nested_enum", hasDefaultNestedEnum, defaultNestedEnum_, writer);
|
| 3291 | PrintField("default_foreign_enum", hasDefaultForeignEnum, defaultForeignEnum_, writer);
|
| 3292 | PrintField("default_import_enum", hasDefaultImportEnum, defaultImportEnum_, writer);
|
| 3293 | PrintField("default_string_piece", hasDefaultStringPiece, defaultStringPiece_, writer);
|
| 3294 | PrintField("default_cord", hasDefaultCord, defaultCord_, writer);
|
| 3295 | }
|
| 3296 | #endregion
|
| 3297 |
|
| 3298 | public static TestAllTypesLite ParseFrom(pb::ByteString data) {
|
| 3299 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 3300 | }
|
| 3301 | public static TestAllTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 3302 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 3303 | }
|
| 3304 | public static TestAllTypesLite ParseFrom(byte[] data) {
|
| 3305 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 3306 | }
|
| 3307 | public static TestAllTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 3308 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 3309 | }
|
| 3310 | public static TestAllTypesLite ParseFrom(global::System.IO.Stream input) {
|
| 3311 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 3312 | }
|
| 3313 | public static TestAllTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 3314 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 3315 | }
|
| 3316 | public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 3317 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 3318 | }
|
| 3319 | public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 3320 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 3321 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 3322 | public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3323 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 3324 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 3325 | public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3326 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 3327 | }
|
| 3328 | public static Builder CreateBuilder() { return new Builder(); }
|
| 3329 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 3330 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 3331 | public static Builder CreateBuilder(TestAllTypesLite prototype) {
|
| 3332 | return (Builder) new Builder().MergeFrom(prototype);
|
| 3333 | }
|
| 3334 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 3335 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 3336 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 3337 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3338 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestAllTypesLite, Builder> {
|
| 3339 | protected override Builder ThisBuilder {
|
| 3340 | get { return this; }
|
| 3341 | }
|
| 3342 | public Builder() {}
|
| 3343 |
|
| 3344 | TestAllTypesLite result = new TestAllTypesLite();
|
| 3345 |
|
| 3346 | protected override TestAllTypesLite MessageBeingBuilt {
|
| 3347 | get { return result; }
|
| 3348 | }
|
| 3349 |
|
| 3350 | public override Builder Clear() {
|
| 3351 | result = new TestAllTypesLite();
|
| 3352 | return this;
|
| 3353 | }
|
| 3354 |
|
| 3355 | public override Builder Clone() {
|
| 3356 | return new Builder().MergeFrom(result);
|
| 3357 | }
|
| 3358 |
|
| 3359 | public override TestAllTypesLite DefaultInstanceForType {
|
| 3360 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance; }
|
| 3361 | }
|
| 3362 |
|
| 3363 | public override TestAllTypesLite BuildPartial() {
|
| 3364 | if (result == null) {
|
| 3365 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 3366 | }
|
| 3367 | result.repeatedInt32_.MakeReadOnly();
|
| 3368 | result.repeatedInt64_.MakeReadOnly();
|
| 3369 | result.repeatedUint32_.MakeReadOnly();
|
| 3370 | result.repeatedUint64_.MakeReadOnly();
|
| 3371 | result.repeatedSint32_.MakeReadOnly();
|
| 3372 | result.repeatedSint64_.MakeReadOnly();
|
| 3373 | result.repeatedFixed32_.MakeReadOnly();
|
| 3374 | result.repeatedFixed64_.MakeReadOnly();
|
| 3375 | result.repeatedSfixed32_.MakeReadOnly();
|
| 3376 | result.repeatedSfixed64_.MakeReadOnly();
|
| 3377 | result.repeatedFloat_.MakeReadOnly();
|
| 3378 | result.repeatedDouble_.MakeReadOnly();
|
| 3379 | result.repeatedBool_.MakeReadOnly();
|
| 3380 | result.repeatedString_.MakeReadOnly();
|
| 3381 | result.repeatedBytes_.MakeReadOnly();
|
| 3382 | result.repeatedGroup_.MakeReadOnly();
|
| 3383 | result.repeatedNestedMessage_.MakeReadOnly();
|
| 3384 | result.repeatedForeignMessage_.MakeReadOnly();
|
| 3385 | result.repeatedImportMessage_.MakeReadOnly();
|
| 3386 | result.repeatedNestedEnum_.MakeReadOnly();
|
| 3387 | result.repeatedForeignEnum_.MakeReadOnly();
|
| 3388 | result.repeatedImportEnum_.MakeReadOnly();
|
| 3389 | result.repeatedStringPiece_.MakeReadOnly();
|
| 3390 | result.repeatedCord_.MakeReadOnly();
|
| 3391 | TestAllTypesLite returnMe = result;
|
| 3392 | result = null;
|
| 3393 | return returnMe;
|
| 3394 | }
|
| 3395 |
|
| 3396 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 3397 | if (other is TestAllTypesLite) {
|
| 3398 | return MergeFrom((TestAllTypesLite) other);
|
| 3399 | } else {
|
| 3400 | base.MergeFrom(other);
|
| 3401 | return this;
|
| 3402 | }
|
| 3403 | }
|
| 3404 |
|
| 3405 | public override Builder MergeFrom(TestAllTypesLite other) {
|
| 3406 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance) return this;
|
| 3407 | if (other.HasOptionalInt32) {
|
| 3408 | OptionalInt32 = other.OptionalInt32;
|
| 3409 | }
|
| 3410 | if (other.HasOptionalInt64) {
|
| 3411 | OptionalInt64 = other.OptionalInt64;
|
| 3412 | }
|
| 3413 | if (other.HasOptionalUint32) {
|
| 3414 | OptionalUint32 = other.OptionalUint32;
|
| 3415 | }
|
| 3416 | if (other.HasOptionalUint64) {
|
| 3417 | OptionalUint64 = other.OptionalUint64;
|
| 3418 | }
|
| 3419 | if (other.HasOptionalSint32) {
|
| 3420 | OptionalSint32 = other.OptionalSint32;
|
| 3421 | }
|
| 3422 | if (other.HasOptionalSint64) {
|
| 3423 | OptionalSint64 = other.OptionalSint64;
|
| 3424 | }
|
| 3425 | if (other.HasOptionalFixed32) {
|
| 3426 | OptionalFixed32 = other.OptionalFixed32;
|
| 3427 | }
|
| 3428 | if (other.HasOptionalFixed64) {
|
| 3429 | OptionalFixed64 = other.OptionalFixed64;
|
| 3430 | }
|
| 3431 | if (other.HasOptionalSfixed32) {
|
| 3432 | OptionalSfixed32 = other.OptionalSfixed32;
|
| 3433 | }
|
| 3434 | if (other.HasOptionalSfixed64) {
|
| 3435 | OptionalSfixed64 = other.OptionalSfixed64;
|
| 3436 | }
|
| 3437 | if (other.HasOptionalFloat) {
|
| 3438 | OptionalFloat = other.OptionalFloat;
|
| 3439 | }
|
| 3440 | if (other.HasOptionalDouble) {
|
| 3441 | OptionalDouble = other.OptionalDouble;
|
| 3442 | }
|
| 3443 | if (other.HasOptionalBool) {
|
| 3444 | OptionalBool = other.OptionalBool;
|
| 3445 | }
|
| 3446 | if (other.HasOptionalString) {
|
| 3447 | OptionalString = other.OptionalString;
|
| 3448 | }
|
| 3449 | if (other.HasOptionalBytes) {
|
| 3450 | OptionalBytes = other.OptionalBytes;
|
| 3451 | }
|
| 3452 | if (other.HasOptionalGroup) {
|
| 3453 | MergeOptionalGroup(other.OptionalGroup);
|
| 3454 | }
|
| 3455 | if (other.HasOptionalNestedMessage) {
|
| 3456 | MergeOptionalNestedMessage(other.OptionalNestedMessage);
|
| 3457 | }
|
| 3458 | if (other.HasOptionalForeignMessage) {
|
| 3459 | MergeOptionalForeignMessage(other.OptionalForeignMessage);
|
| 3460 | }
|
| 3461 | if (other.HasOptionalImportMessage) {
|
| 3462 | MergeOptionalImportMessage(other.OptionalImportMessage);
|
| 3463 | }
|
| 3464 | if (other.HasOptionalNestedEnum) {
|
| 3465 | OptionalNestedEnum = other.OptionalNestedEnum;
|
| 3466 | }
|
| 3467 | if (other.HasOptionalForeignEnum) {
|
| 3468 | OptionalForeignEnum = other.OptionalForeignEnum;
|
| 3469 | }
|
| 3470 | if (other.HasOptionalImportEnum) {
|
| 3471 | OptionalImportEnum = other.OptionalImportEnum;
|
| 3472 | }
|
| 3473 | if (other.HasOptionalStringPiece) {
|
| 3474 | OptionalStringPiece = other.OptionalStringPiece;
|
| 3475 | }
|
| 3476 | if (other.HasOptionalCord) {
|
| 3477 | OptionalCord = other.OptionalCord;
|
| 3478 | }
|
| 3479 | if (other.repeatedInt32_.Count != 0) {
|
| 3480 | base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
|
| 3481 | }
|
| 3482 | if (other.repeatedInt64_.Count != 0) {
|
| 3483 | base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
|
| 3484 | }
|
| 3485 | if (other.repeatedUint32_.Count != 0) {
|
| 3486 | base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
|
| 3487 | }
|
| 3488 | if (other.repeatedUint64_.Count != 0) {
|
| 3489 | base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
|
| 3490 | }
|
| 3491 | if (other.repeatedSint32_.Count != 0) {
|
| 3492 | base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
|
| 3493 | }
|
| 3494 | if (other.repeatedSint64_.Count != 0) {
|
| 3495 | base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
|
| 3496 | }
|
| 3497 | if (other.repeatedFixed32_.Count != 0) {
|
| 3498 | base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
|
| 3499 | }
|
| 3500 | if (other.repeatedFixed64_.Count != 0) {
|
| 3501 | base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
|
| 3502 | }
|
| 3503 | if (other.repeatedSfixed32_.Count != 0) {
|
| 3504 | base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
|
| 3505 | }
|
| 3506 | if (other.repeatedSfixed64_.Count != 0) {
|
| 3507 | base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
|
| 3508 | }
|
| 3509 | if (other.repeatedFloat_.Count != 0) {
|
| 3510 | base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
|
| 3511 | }
|
| 3512 | if (other.repeatedDouble_.Count != 0) {
|
| 3513 | base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
|
| 3514 | }
|
| 3515 | if (other.repeatedBool_.Count != 0) {
|
| 3516 | base.AddRange(other.repeatedBool_, result.repeatedBool_);
|
| 3517 | }
|
| 3518 | if (other.repeatedString_.Count != 0) {
|
| 3519 | base.AddRange(other.repeatedString_, result.repeatedString_);
|
| 3520 | }
|
| 3521 | if (other.repeatedBytes_.Count != 0) {
|
| 3522 | base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
|
| 3523 | }
|
| 3524 | if (other.repeatedGroup_.Count != 0) {
|
| 3525 | base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
|
| 3526 | }
|
| 3527 | if (other.repeatedNestedMessage_.Count != 0) {
|
| 3528 | base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
|
| 3529 | }
|
| 3530 | if (other.repeatedForeignMessage_.Count != 0) {
|
| 3531 | base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
|
| 3532 | }
|
| 3533 | if (other.repeatedImportMessage_.Count != 0) {
|
| 3534 | base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
|
| 3535 | }
|
| 3536 | if (other.repeatedNestedEnum_.Count != 0) {
|
| 3537 | base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
|
| 3538 | }
|
| 3539 | if (other.repeatedForeignEnum_.Count != 0) {
|
| 3540 | base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
|
| 3541 | }
|
| 3542 | if (other.repeatedImportEnum_.Count != 0) {
|
| 3543 | base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
|
| 3544 | }
|
| 3545 | if (other.repeatedStringPiece_.Count != 0) {
|
| 3546 | base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
|
| 3547 | }
|
| 3548 | if (other.repeatedCord_.Count != 0) {
|
| 3549 | base.AddRange(other.repeatedCord_, result.repeatedCord_);
|
| 3550 | }
|
| 3551 | if (other.HasDefaultInt32) {
|
| 3552 | DefaultInt32 = other.DefaultInt32;
|
| 3553 | }
|
| 3554 | if (other.HasDefaultInt64) {
|
| 3555 | DefaultInt64 = other.DefaultInt64;
|
| 3556 | }
|
| 3557 | if (other.HasDefaultUint32) {
|
| 3558 | DefaultUint32 = other.DefaultUint32;
|
| 3559 | }
|
| 3560 | if (other.HasDefaultUint64) {
|
| 3561 | DefaultUint64 = other.DefaultUint64;
|
| 3562 | }
|
| 3563 | if (other.HasDefaultSint32) {
|
| 3564 | DefaultSint32 = other.DefaultSint32;
|
| 3565 | }
|
| 3566 | if (other.HasDefaultSint64) {
|
| 3567 | DefaultSint64 = other.DefaultSint64;
|
| 3568 | }
|
| 3569 | if (other.HasDefaultFixed32) {
|
| 3570 | DefaultFixed32 = other.DefaultFixed32;
|
| 3571 | }
|
| 3572 | if (other.HasDefaultFixed64) {
|
| 3573 | DefaultFixed64 = other.DefaultFixed64;
|
| 3574 | }
|
| 3575 | if (other.HasDefaultSfixed32) {
|
| 3576 | DefaultSfixed32 = other.DefaultSfixed32;
|
| 3577 | }
|
| 3578 | if (other.HasDefaultSfixed64) {
|
| 3579 | DefaultSfixed64 = other.DefaultSfixed64;
|
| 3580 | }
|
| 3581 | if (other.HasDefaultFloat) {
|
| 3582 | DefaultFloat = other.DefaultFloat;
|
| 3583 | }
|
| 3584 | if (other.HasDefaultDouble) {
|
| 3585 | DefaultDouble = other.DefaultDouble;
|
| 3586 | }
|
| 3587 | if (other.HasDefaultBool) {
|
| 3588 | DefaultBool = other.DefaultBool;
|
| 3589 | }
|
| 3590 | if (other.HasDefaultString) {
|
| 3591 | DefaultString = other.DefaultString;
|
| 3592 | }
|
| 3593 | if (other.HasDefaultBytes) {
|
| 3594 | DefaultBytes = other.DefaultBytes;
|
| 3595 | }
|
| 3596 | if (other.HasDefaultNestedEnum) {
|
| 3597 | DefaultNestedEnum = other.DefaultNestedEnum;
|
| 3598 | }
|
| 3599 | if (other.HasDefaultForeignEnum) {
|
| 3600 | DefaultForeignEnum = other.DefaultForeignEnum;
|
| 3601 | }
|
| 3602 | if (other.HasDefaultImportEnum) {
|
| 3603 | DefaultImportEnum = other.DefaultImportEnum;
|
| 3604 | }
|
| 3605 | if (other.HasDefaultStringPiece) {
|
| 3606 | DefaultStringPiece = other.DefaultStringPiece;
|
| 3607 | }
|
| 3608 | if (other.HasDefaultCord) {
|
| 3609 | DefaultCord = other.DefaultCord;
|
| 3610 | }
|
| 3611 | return this;
|
| 3612 | }
|
| 3613 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 3614 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3615 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 3616 | }
|
| 3617 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 3618 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 3619 | uint tag;
|
| 3620 | string field_name;
|
| 3621 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3622 | switch (tag) {
|
| 3623 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 3624 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3625 | }
|
| 3626 | default: {
|
| 3627 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 3628 | return this;
|
| 3629 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3630 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3631 | break;
|
| 3632 | }
|
| 3633 | case 8: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3634 | result.hasOptionalInt32 |= input.ReadInt32(ref result.optionalInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3635 | break;
|
| 3636 | }
|
| 3637 | case 16: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3638 | result.hasOptionalInt64 |= input.ReadInt64(ref result.optionalInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3639 | break;
|
| 3640 | }
|
| 3641 | case 24: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3642 | result.hasOptionalUint32 |= input.ReadUInt32(ref result.optionalUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3643 | break;
|
| 3644 | }
|
| 3645 | case 32: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3646 | result.hasOptionalUint64 |= input.ReadUInt64(ref result.optionalUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3647 | break;
|
| 3648 | }
|
| 3649 | case 40: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3650 | result.hasOptionalSint32 |= input.ReadSInt32(ref result.optionalSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3651 | break;
|
| 3652 | }
|
| 3653 | case 48: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3654 | result.hasOptionalSint64 |= input.ReadSInt64(ref result.optionalSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3655 | break;
|
| 3656 | }
|
| 3657 | case 61: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3658 | result.hasOptionalFixed32 |= input.ReadFixed32(ref result.optionalFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3659 | break;
|
| 3660 | }
|
| 3661 | case 65: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3662 | result.hasOptionalFixed64 |= input.ReadFixed64(ref result.optionalFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3663 | break;
|
| 3664 | }
|
| 3665 | case 77: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3666 | result.hasOptionalSfixed32 |= input.ReadSFixed32(ref result.optionalSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3667 | break;
|
| 3668 | }
|
| 3669 | case 81: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3670 | result.hasOptionalSfixed64 |= input.ReadSFixed64(ref result.optionalSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3671 | break;
|
| 3672 | }
|
| 3673 | case 93: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3674 | result.hasOptionalFloat |= input.ReadFloat(ref result.optionalFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3675 | break;
|
| 3676 | }
|
| 3677 | case 97: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3678 | result.hasOptionalDouble |= input.ReadDouble(ref result.optionalDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3679 | break;
|
| 3680 | }
|
| 3681 | case 104: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3682 | result.hasOptionalBool |= input.ReadBool(ref result.optionalBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3683 | break;
|
| 3684 | }
|
| 3685 | case 114: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3686 | result.hasOptionalString |= input.ReadString(ref result.optionalString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3687 | break;
|
| 3688 | }
|
| 3689 | case 122: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3690 | result.hasOptionalBytes |= input.ReadBytes(ref result.optionalBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3691 | break;
|
| 3692 | }
|
| 3693 | case 131: {
|
| 3694 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder();
|
| 3695 | if (HasOptionalGroup) {
|
| 3696 | subBuilder.MergeFrom(OptionalGroup);
|
| 3697 | }
|
| 3698 | input.ReadGroup(16, subBuilder, extensionRegistry);
|
| 3699 | OptionalGroup = subBuilder.BuildPartial();
|
| 3700 | break;
|
| 3701 | }
|
| 3702 | case 146: {
|
| 3703 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder();
|
| 3704 | if (HasOptionalNestedMessage) {
|
| 3705 | subBuilder.MergeFrom(OptionalNestedMessage);
|
| 3706 | }
|
| 3707 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3708 | OptionalNestedMessage = subBuilder.BuildPartial();
|
| 3709 | break;
|
| 3710 | }
|
| 3711 | case 154: {
|
| 3712 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder();
|
| 3713 | if (HasOptionalForeignMessage) {
|
| 3714 | subBuilder.MergeFrom(OptionalForeignMessage);
|
| 3715 | }
|
| 3716 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3717 | OptionalForeignMessage = subBuilder.BuildPartial();
|
| 3718 | break;
|
| 3719 | }
|
| 3720 | case 162: {
|
| 3721 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder();
|
| 3722 | if (HasOptionalImportMessage) {
|
| 3723 | subBuilder.MergeFrom(OptionalImportMessage);
|
| 3724 | }
|
| 3725 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3726 | OptionalImportMessage = subBuilder.BuildPartial();
|
| 3727 | break;
|
| 3728 | }
|
| 3729 | case 168: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3730 | object unknown;
|
| 3731 | if(input.ReadEnum(ref result.optionalNestedEnum_, out unknown)) {
|
| 3732 | result.hasOptionalNestedEnum = true;
|
| 3733 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3734 | }
|
| 3735 | break;
|
| 3736 | }
|
| 3737 | case 176: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3738 | object unknown;
|
| 3739 | if(input.ReadEnum(ref result.optionalForeignEnum_, out unknown)) {
|
| 3740 | result.hasOptionalForeignEnum = true;
|
| 3741 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3742 | }
|
| 3743 | break;
|
| 3744 | }
|
| 3745 | case 184: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3746 | object unknown;
|
| 3747 | if(input.ReadEnum(ref result.optionalImportEnum_, out unknown)) {
|
| 3748 | result.hasOptionalImportEnum = true;
|
| 3749 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3750 | }
|
| 3751 | break;
|
| 3752 | }
|
| 3753 | case 194: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3754 | result.hasOptionalStringPiece |= input.ReadString(ref result.optionalStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3755 | break;
|
| 3756 | }
|
| 3757 | case 202: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3758 | result.hasOptionalCord |= input.ReadString(ref result.optionalCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3759 | break;
|
| 3760 | }
|
| 3761 | case 248: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3762 | input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.repeatedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3763 | break;
|
| 3764 | }
|
| 3765 | case 256: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3766 | input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.repeatedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3767 | break;
|
| 3768 | }
|
| 3769 | case 264: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3770 | input.ReadPrimitiveArray(pbd::FieldType.UInt32, tag, field_name, result.repeatedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3771 | break;
|
| 3772 | }
|
| 3773 | case 272: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3774 | input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.repeatedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3775 | break;
|
| 3776 | }
|
| 3777 | case 280: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3778 | input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.repeatedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3779 | break;
|
| 3780 | }
|
| 3781 | case 288: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3782 | input.ReadPrimitiveArray(pbd::FieldType.SInt64, tag, field_name, result.repeatedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3783 | break;
|
| 3784 | }
|
| 3785 | case 301: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3786 | input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.repeatedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3787 | break;
|
| 3788 | }
|
| 3789 | case 305: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3790 | input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.repeatedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3791 | break;
|
| 3792 | }
|
| 3793 | case 317: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3794 | input.ReadPrimitiveArray(pbd::FieldType.SFixed32, tag, field_name, result.repeatedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3795 | break;
|
| 3796 | }
|
| 3797 | case 321: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3798 | input.ReadPrimitiveArray(pbd::FieldType.SFixed64, tag, field_name, result.repeatedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3799 | break;
|
| 3800 | }
|
| 3801 | case 333: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3802 | input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.repeatedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3803 | break;
|
| 3804 | }
|
| 3805 | case 337: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3806 | input.ReadPrimitiveArray(pbd::FieldType.Double, tag, field_name, result.repeatedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3807 | break;
|
| 3808 | }
|
| 3809 | case 344: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3810 | input.ReadPrimitiveArray(pbd::FieldType.Bool, tag, field_name, result.repeatedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3811 | break;
|
| 3812 | }
|
| 3813 | case 354: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3814 | input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3815 | break;
|
| 3816 | }
|
| 3817 | case 362: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3818 | input.ReadPrimitiveArray(pbd::FieldType.Bytes, tag, field_name, result.repeatedBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3819 | break;
|
| 3820 | }
|
| 3821 | case 371: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3822 | 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] | 3823 | break;
|
| 3824 | }
|
| 3825 | case 386: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3826 | 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] | 3827 | break;
|
| 3828 | }
|
| 3829 | case 394: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3830 | 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] | 3831 | break;
|
| 3832 | }
|
| 3833 | case 402: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3834 | 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] | 3835 | break;
|
| 3836 | }
|
| 3837 | case 408: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3838 | scg::ICollection<object> unknownItems;
|
| 3839 | 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] | 3840 | break;
|
| 3841 | }
|
| 3842 | case 416: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3843 | scg::ICollection<object> unknownItems;
|
| 3844 | 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] | 3845 | break;
|
| 3846 | }
|
| 3847 | case 424: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3848 | scg::ICollection<object> unknownItems;
|
| 3849 | 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] | 3850 | break;
|
| 3851 | }
|
| 3852 | case 434: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3853 | input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3854 | break;
|
| 3855 | }
|
| 3856 | case 442: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3857 | input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3858 | break;
|
| 3859 | }
|
| 3860 | case 488: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3861 | result.hasDefaultInt32 |= input.ReadInt32(ref result.defaultInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3862 | break;
|
| 3863 | }
|
| 3864 | case 496: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3865 | result.hasDefaultInt64 |= input.ReadInt64(ref result.defaultInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3866 | break;
|
| 3867 | }
|
| 3868 | case 504: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3869 | result.hasDefaultUint32 |= input.ReadUInt32(ref result.defaultUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3870 | break;
|
| 3871 | }
|
| 3872 | case 512: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3873 | result.hasDefaultUint64 |= input.ReadUInt64(ref result.defaultUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3874 | break;
|
| 3875 | }
|
| 3876 | case 520: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3877 | result.hasDefaultSint32 |= input.ReadSInt32(ref result.defaultSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3878 | break;
|
| 3879 | }
|
| 3880 | case 528: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3881 | result.hasDefaultSint64 |= input.ReadSInt64(ref result.defaultSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3882 | break;
|
| 3883 | }
|
| 3884 | case 541: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3885 | result.hasDefaultFixed32 |= input.ReadFixed32(ref result.defaultFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3886 | break;
|
| 3887 | }
|
| 3888 | case 545: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3889 | result.hasDefaultFixed64 |= input.ReadFixed64(ref result.defaultFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3890 | break;
|
| 3891 | }
|
| 3892 | case 557: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3893 | result.hasDefaultSfixed32 |= input.ReadSFixed32(ref result.defaultSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3894 | break;
|
| 3895 | }
|
| 3896 | case 561: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3897 | result.hasDefaultSfixed64 |= input.ReadSFixed64(ref result.defaultSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3898 | break;
|
| 3899 | }
|
| 3900 | case 573: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3901 | result.hasDefaultFloat |= input.ReadFloat(ref result.defaultFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3902 | break;
|
| 3903 | }
|
| 3904 | case 577: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3905 | result.hasDefaultDouble |= input.ReadDouble(ref result.defaultDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3906 | break;
|
| 3907 | }
|
| 3908 | case 584: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3909 | result.hasDefaultBool |= input.ReadBool(ref result.defaultBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3910 | break;
|
| 3911 | }
|
| 3912 | case 594: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3913 | result.hasDefaultString |= input.ReadString(ref result.defaultString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3914 | break;
|
| 3915 | }
|
| 3916 | case 602: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3917 | result.hasDefaultBytes |= input.ReadBytes(ref result.defaultBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3918 | break;
|
| 3919 | }
|
| 3920 | case 648: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3921 | object unknown;
|
| 3922 | if(input.ReadEnum(ref result.defaultNestedEnum_, out unknown)) {
|
| 3923 | result.hasDefaultNestedEnum = true;
|
| 3924 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3925 | }
|
| 3926 | break;
|
| 3927 | }
|
| 3928 | case 656: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3929 | object unknown;
|
| 3930 | if(input.ReadEnum(ref result.defaultForeignEnum_, out unknown)) {
|
| 3931 | result.hasDefaultForeignEnum = true;
|
| 3932 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3933 | }
|
| 3934 | break;
|
| 3935 | }
|
| 3936 | case 664: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3937 | object unknown;
|
| 3938 | if(input.ReadEnum(ref result.defaultImportEnum_, out unknown)) {
|
| 3939 | result.hasDefaultImportEnum = true;
|
| 3940 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3941 | }
|
| 3942 | break;
|
| 3943 | }
|
| 3944 | case 674: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3945 | result.hasDefaultStringPiece |= input.ReadString(ref result.defaultStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3946 | break;
|
| 3947 | }
|
| 3948 | case 682: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3949 | result.hasDefaultCord |= input.ReadString(ref result.defaultCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3950 | break;
|
| 3951 | }
|
| 3952 | }
|
| 3953 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 3954 |
|
| 3955 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3956 | }
|
| 3957 |
|
| 3958 |
|
| 3959 | public bool HasOptionalInt32 {
|
| 3960 | get { return result.HasOptionalInt32; }
|
| 3961 | }
|
| 3962 | public int OptionalInt32 {
|
| 3963 | get { return result.OptionalInt32; }
|
| 3964 | set { SetOptionalInt32(value); }
|
| 3965 | }
|
| 3966 | public Builder SetOptionalInt32(int value) {
|
| 3967 | result.hasOptionalInt32 = true;
|
| 3968 | result.optionalInt32_ = value;
|
| 3969 | return this;
|
| 3970 | }
|
| 3971 | public Builder ClearOptionalInt32() {
|
| 3972 | result.hasOptionalInt32 = false;
|
| 3973 | result.optionalInt32_ = 0;
|
| 3974 | return this;
|
| 3975 | }
|
| 3976 |
|
| 3977 | public bool HasOptionalInt64 {
|
| 3978 | get { return result.HasOptionalInt64; }
|
| 3979 | }
|
| 3980 | public long OptionalInt64 {
|
| 3981 | get { return result.OptionalInt64; }
|
| 3982 | set { SetOptionalInt64(value); }
|
| 3983 | }
|
| 3984 | public Builder SetOptionalInt64(long value) {
|
| 3985 | result.hasOptionalInt64 = true;
|
| 3986 | result.optionalInt64_ = value;
|
| 3987 | return this;
|
| 3988 | }
|
| 3989 | public Builder ClearOptionalInt64() {
|
| 3990 | result.hasOptionalInt64 = false;
|
| 3991 | result.optionalInt64_ = 0L;
|
| 3992 | return this;
|
| 3993 | }
|
| 3994 |
|
| 3995 | public bool HasOptionalUint32 {
|
| 3996 | get { return result.HasOptionalUint32; }
|
| 3997 | }
|
| 3998 | [global::System.CLSCompliant(false)]
|
| 3999 | public uint OptionalUint32 {
|
| 4000 | get { return result.OptionalUint32; }
|
| 4001 | set { SetOptionalUint32(value); }
|
| 4002 | }
|
| 4003 | [global::System.CLSCompliant(false)]
|
| 4004 | public Builder SetOptionalUint32(uint value) {
|
| 4005 | result.hasOptionalUint32 = true;
|
| 4006 | result.optionalUint32_ = value;
|
| 4007 | return this;
|
| 4008 | }
|
| 4009 | public Builder ClearOptionalUint32() {
|
| 4010 | result.hasOptionalUint32 = false;
|
| 4011 | result.optionalUint32_ = 0;
|
| 4012 | return this;
|
| 4013 | }
|
| 4014 |
|
| 4015 | public bool HasOptionalUint64 {
|
| 4016 | get { return result.HasOptionalUint64; }
|
| 4017 | }
|
| 4018 | [global::System.CLSCompliant(false)]
|
| 4019 | public ulong OptionalUint64 {
|
| 4020 | get { return result.OptionalUint64; }
|
| 4021 | set { SetOptionalUint64(value); }
|
| 4022 | }
|
| 4023 | [global::System.CLSCompliant(false)]
|
| 4024 | public Builder SetOptionalUint64(ulong value) {
|
| 4025 | result.hasOptionalUint64 = true;
|
| 4026 | result.optionalUint64_ = value;
|
| 4027 | return this;
|
| 4028 | }
|
| 4029 | public Builder ClearOptionalUint64() {
|
| 4030 | result.hasOptionalUint64 = false;
|
| 4031 | result.optionalUint64_ = 0UL;
|
| 4032 | return this;
|
| 4033 | }
|
| 4034 |
|
| 4035 | public bool HasOptionalSint32 {
|
| 4036 | get { return result.HasOptionalSint32; }
|
| 4037 | }
|
| 4038 | public int OptionalSint32 {
|
| 4039 | get { return result.OptionalSint32; }
|
| 4040 | set { SetOptionalSint32(value); }
|
| 4041 | }
|
| 4042 | public Builder SetOptionalSint32(int value) {
|
| 4043 | result.hasOptionalSint32 = true;
|
| 4044 | result.optionalSint32_ = value;
|
| 4045 | return this;
|
| 4046 | }
|
| 4047 | public Builder ClearOptionalSint32() {
|
| 4048 | result.hasOptionalSint32 = false;
|
| 4049 | result.optionalSint32_ = 0;
|
| 4050 | return this;
|
| 4051 | }
|
| 4052 |
|
| 4053 | public bool HasOptionalSint64 {
|
| 4054 | get { return result.HasOptionalSint64; }
|
| 4055 | }
|
| 4056 | public long OptionalSint64 {
|
| 4057 | get { return result.OptionalSint64; }
|
| 4058 | set { SetOptionalSint64(value); }
|
| 4059 | }
|
| 4060 | public Builder SetOptionalSint64(long value) {
|
| 4061 | result.hasOptionalSint64 = true;
|
| 4062 | result.optionalSint64_ = value;
|
| 4063 | return this;
|
| 4064 | }
|
| 4065 | public Builder ClearOptionalSint64() {
|
| 4066 | result.hasOptionalSint64 = false;
|
| 4067 | result.optionalSint64_ = 0;
|
| 4068 | return this;
|
| 4069 | }
|
| 4070 |
|
| 4071 | public bool HasOptionalFixed32 {
|
| 4072 | get { return result.HasOptionalFixed32; }
|
| 4073 | }
|
| 4074 | [global::System.CLSCompliant(false)]
|
| 4075 | public uint OptionalFixed32 {
|
| 4076 | get { return result.OptionalFixed32; }
|
| 4077 | set { SetOptionalFixed32(value); }
|
| 4078 | }
|
| 4079 | [global::System.CLSCompliant(false)]
|
| 4080 | public Builder SetOptionalFixed32(uint value) {
|
| 4081 | result.hasOptionalFixed32 = true;
|
| 4082 | result.optionalFixed32_ = value;
|
| 4083 | return this;
|
| 4084 | }
|
| 4085 | public Builder ClearOptionalFixed32() {
|
| 4086 | result.hasOptionalFixed32 = false;
|
| 4087 | result.optionalFixed32_ = 0;
|
| 4088 | return this;
|
| 4089 | }
|
| 4090 |
|
| 4091 | public bool HasOptionalFixed64 {
|
| 4092 | get { return result.HasOptionalFixed64; }
|
| 4093 | }
|
| 4094 | [global::System.CLSCompliant(false)]
|
| 4095 | public ulong OptionalFixed64 {
|
| 4096 | get { return result.OptionalFixed64; }
|
| 4097 | set { SetOptionalFixed64(value); }
|
| 4098 | }
|
| 4099 | [global::System.CLSCompliant(false)]
|
| 4100 | public Builder SetOptionalFixed64(ulong value) {
|
| 4101 | result.hasOptionalFixed64 = true;
|
| 4102 | result.optionalFixed64_ = value;
|
| 4103 | return this;
|
| 4104 | }
|
| 4105 | public Builder ClearOptionalFixed64() {
|
| 4106 | result.hasOptionalFixed64 = false;
|
| 4107 | result.optionalFixed64_ = 0;
|
| 4108 | return this;
|
| 4109 | }
|
| 4110 |
|
| 4111 | public bool HasOptionalSfixed32 {
|
| 4112 | get { return result.HasOptionalSfixed32; }
|
| 4113 | }
|
| 4114 | public int OptionalSfixed32 {
|
| 4115 | get { return result.OptionalSfixed32; }
|
| 4116 | set { SetOptionalSfixed32(value); }
|
| 4117 | }
|
| 4118 | public Builder SetOptionalSfixed32(int value) {
|
| 4119 | result.hasOptionalSfixed32 = true;
|
| 4120 | result.optionalSfixed32_ = value;
|
| 4121 | return this;
|
| 4122 | }
|
| 4123 | public Builder ClearOptionalSfixed32() {
|
| 4124 | result.hasOptionalSfixed32 = false;
|
| 4125 | result.optionalSfixed32_ = 0;
|
| 4126 | return this;
|
| 4127 | }
|
| 4128 |
|
| 4129 | public bool HasOptionalSfixed64 {
|
| 4130 | get { return result.HasOptionalSfixed64; }
|
| 4131 | }
|
| 4132 | public long OptionalSfixed64 {
|
| 4133 | get { return result.OptionalSfixed64; }
|
| 4134 | set { SetOptionalSfixed64(value); }
|
| 4135 | }
|
| 4136 | public Builder SetOptionalSfixed64(long value) {
|
| 4137 | result.hasOptionalSfixed64 = true;
|
| 4138 | result.optionalSfixed64_ = value;
|
| 4139 | return this;
|
| 4140 | }
|
| 4141 | public Builder ClearOptionalSfixed64() {
|
| 4142 | result.hasOptionalSfixed64 = false;
|
| 4143 | result.optionalSfixed64_ = 0;
|
| 4144 | return this;
|
| 4145 | }
|
| 4146 |
|
| 4147 | public bool HasOptionalFloat {
|
| 4148 | get { return result.HasOptionalFloat; }
|
| 4149 | }
|
| 4150 | public float OptionalFloat {
|
| 4151 | get { return result.OptionalFloat; }
|
| 4152 | set { SetOptionalFloat(value); }
|
| 4153 | }
|
| 4154 | public Builder SetOptionalFloat(float value) {
|
| 4155 | result.hasOptionalFloat = true;
|
| 4156 | result.optionalFloat_ = value;
|
| 4157 | return this;
|
| 4158 | }
|
| 4159 | public Builder ClearOptionalFloat() {
|
| 4160 | result.hasOptionalFloat = false;
|
| 4161 | result.optionalFloat_ = 0F;
|
| 4162 | return this;
|
| 4163 | }
|
| 4164 |
|
| 4165 | public bool HasOptionalDouble {
|
| 4166 | get { return result.HasOptionalDouble; }
|
| 4167 | }
|
| 4168 | public double OptionalDouble {
|
| 4169 | get { return result.OptionalDouble; }
|
| 4170 | set { SetOptionalDouble(value); }
|
| 4171 | }
|
| 4172 | public Builder SetOptionalDouble(double value) {
|
| 4173 | result.hasOptionalDouble = true;
|
| 4174 | result.optionalDouble_ = value;
|
| 4175 | return this;
|
| 4176 | }
|
| 4177 | public Builder ClearOptionalDouble() {
|
| 4178 | result.hasOptionalDouble = false;
|
| 4179 | result.optionalDouble_ = 0D;
|
| 4180 | return this;
|
| 4181 | }
|
| 4182 |
|
| 4183 | public bool HasOptionalBool {
|
| 4184 | get { return result.HasOptionalBool; }
|
| 4185 | }
|
| 4186 | public bool OptionalBool {
|
| 4187 | get { return result.OptionalBool; }
|
| 4188 | set { SetOptionalBool(value); }
|
| 4189 | }
|
| 4190 | public Builder SetOptionalBool(bool value) {
|
| 4191 | result.hasOptionalBool = true;
|
| 4192 | result.optionalBool_ = value;
|
| 4193 | return this;
|
| 4194 | }
|
| 4195 | public Builder ClearOptionalBool() {
|
| 4196 | result.hasOptionalBool = false;
|
| 4197 | result.optionalBool_ = false;
|
| 4198 | return this;
|
| 4199 | }
|
| 4200 |
|
| 4201 | public bool HasOptionalString {
|
| 4202 | get { return result.HasOptionalString; }
|
| 4203 | }
|
| 4204 | public string OptionalString {
|
| 4205 | get { return result.OptionalString; }
|
| 4206 | set { SetOptionalString(value); }
|
| 4207 | }
|
| 4208 | public Builder SetOptionalString(string value) {
|
| 4209 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4210 | result.hasOptionalString = true;
|
| 4211 | result.optionalString_ = value;
|
| 4212 | return this;
|
| 4213 | }
|
| 4214 | public Builder ClearOptionalString() {
|
| 4215 | result.hasOptionalString = false;
|
| 4216 | result.optionalString_ = "";
|
| 4217 | return this;
|
| 4218 | }
|
| 4219 |
|
| 4220 | public bool HasOptionalBytes {
|
| 4221 | get { return result.HasOptionalBytes; }
|
| 4222 | }
|
| 4223 | public pb::ByteString OptionalBytes {
|
| 4224 | get { return result.OptionalBytes; }
|
| 4225 | set { SetOptionalBytes(value); }
|
| 4226 | }
|
| 4227 | public Builder SetOptionalBytes(pb::ByteString value) {
|
| 4228 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4229 | result.hasOptionalBytes = true;
|
| 4230 | result.optionalBytes_ = value;
|
| 4231 | return this;
|
| 4232 | }
|
| 4233 | public Builder ClearOptionalBytes() {
|
| 4234 | result.hasOptionalBytes = false;
|
| 4235 | result.optionalBytes_ = pb::ByteString.Empty;
|
| 4236 | return this;
|
| 4237 | }
|
| 4238 |
|
| 4239 | public bool HasOptionalGroup {
|
| 4240 | get { return result.HasOptionalGroup; }
|
| 4241 | }
|
| 4242 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
|
| 4243 | get { return result.OptionalGroup; }
|
| 4244 | set { SetOptionalGroup(value); }
|
| 4245 | }
|
| 4246 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) {
|
| 4247 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4248 | result.hasOptionalGroup = true;
|
| 4249 | result.optionalGroup_ = value;
|
| 4250 | return this;
|
| 4251 | }
|
| 4252 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder builderForValue) {
|
| 4253 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4254 | result.hasOptionalGroup = true;
|
| 4255 | result.optionalGroup_ = builderForValue.Build();
|
| 4256 | return this;
|
| 4257 | }
|
| 4258 | public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) {
|
| 4259 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4260 | if (result.HasOptionalGroup &&
|
| 4261 | result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) {
|
| 4262 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
|
| 4263 | } else {
|
| 4264 | result.optionalGroup_ = value;
|
| 4265 | }
|
| 4266 | result.hasOptionalGroup = true;
|
| 4267 | return this;
|
| 4268 | }
|
| 4269 | public Builder ClearOptionalGroup() {
|
| 4270 | result.hasOptionalGroup = false;
|
| 4271 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance;
|
| 4272 | return this;
|
| 4273 | }
|
| 4274 |
|
| 4275 | public bool HasOptionalNestedMessage {
|
| 4276 | get { return result.HasOptionalNestedMessage; }
|
| 4277 | }
|
| 4278 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
|
| 4279 | get { return result.OptionalNestedMessage; }
|
| 4280 | set { SetOptionalNestedMessage(value); }
|
| 4281 | }
|
| 4282 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 4283 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4284 | result.hasOptionalNestedMessage = true;
|
| 4285 | result.optionalNestedMessage_ = value;
|
| 4286 | return this;
|
| 4287 | }
|
| 4288 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 4289 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4290 | result.hasOptionalNestedMessage = true;
|
| 4291 | result.optionalNestedMessage_ = builderForValue.Build();
|
| 4292 | return this;
|
| 4293 | }
|
| 4294 | public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 4295 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4296 | if (result.HasOptionalNestedMessage &&
|
| 4297 | result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) {
|
| 4298 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
|
| 4299 | } else {
|
| 4300 | result.optionalNestedMessage_ = value;
|
| 4301 | }
|
| 4302 | result.hasOptionalNestedMessage = true;
|
| 4303 | return this;
|
| 4304 | }
|
| 4305 | public Builder ClearOptionalNestedMessage() {
|
| 4306 | result.hasOptionalNestedMessage = false;
|
| 4307 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance;
|
| 4308 | return this;
|
| 4309 | }
|
| 4310 |
|
| 4311 | public bool HasOptionalForeignMessage {
|
| 4312 | get { return result.HasOptionalForeignMessage; }
|
| 4313 | }
|
| 4314 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage {
|
| 4315 | get { return result.OptionalForeignMessage; }
|
| 4316 | set { SetOptionalForeignMessage(value); }
|
| 4317 | }
|
| 4318 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 4319 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4320 | result.hasOptionalForeignMessage = true;
|
| 4321 | result.optionalForeignMessage_ = value;
|
| 4322 | return this;
|
| 4323 | }
|
| 4324 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 4325 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4326 | result.hasOptionalForeignMessage = true;
|
| 4327 | result.optionalForeignMessage_ = builderForValue.Build();
|
| 4328 | return this;
|
| 4329 | }
|
| 4330 | public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 4331 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4332 | if (result.HasOptionalForeignMessage &&
|
| 4333 | result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) {
|
| 4334 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
|
| 4335 | } else {
|
| 4336 | result.optionalForeignMessage_ = value;
|
| 4337 | }
|
| 4338 | result.hasOptionalForeignMessage = true;
|
| 4339 | return this;
|
| 4340 | }
|
| 4341 | public Builder ClearOptionalForeignMessage() {
|
| 4342 | result.hasOptionalForeignMessage = false;
|
| 4343 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance;
|
| 4344 | return this;
|
| 4345 | }
|
| 4346 |
|
| 4347 | public bool HasOptionalImportMessage {
|
| 4348 | get { return result.HasOptionalImportMessage; }
|
| 4349 | }
|
| 4350 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage {
|
| 4351 | get { return result.OptionalImportMessage; }
|
| 4352 | set { SetOptionalImportMessage(value); }
|
| 4353 | }
|
| 4354 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 4355 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4356 | result.hasOptionalImportMessage = true;
|
| 4357 | result.optionalImportMessage_ = value;
|
| 4358 | return this;
|
| 4359 | }
|
| 4360 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 4361 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4362 | result.hasOptionalImportMessage = true;
|
| 4363 | result.optionalImportMessage_ = builderForValue.Build();
|
| 4364 | return this;
|
| 4365 | }
|
| 4366 | public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 4367 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4368 | if (result.HasOptionalImportMessage &&
|
| 4369 | result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance) {
|
| 4370 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
|
| 4371 | } else {
|
| 4372 | result.optionalImportMessage_ = value;
|
| 4373 | }
|
| 4374 | result.hasOptionalImportMessage = true;
|
| 4375 | return this;
|
| 4376 | }
|
| 4377 | public Builder ClearOptionalImportMessage() {
|
| 4378 | result.hasOptionalImportMessage = false;
|
| 4379 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance;
|
| 4380 | return this;
|
| 4381 | }
|
| 4382 |
|
| 4383 | public bool HasOptionalNestedEnum {
|
| 4384 | get { return result.HasOptionalNestedEnum; }
|
| 4385 | }
|
| 4386 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
|
| 4387 | get { return result.OptionalNestedEnum; }
|
| 4388 | set { SetOptionalNestedEnum(value); }
|
| 4389 | }
|
| 4390 | public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 4391 | result.hasOptionalNestedEnum = true;
|
| 4392 | result.optionalNestedEnum_ = value;
|
| 4393 | return this;
|
| 4394 | }
|
| 4395 | public Builder ClearOptionalNestedEnum() {
|
| 4396 | result.hasOptionalNestedEnum = false;
|
| 4397 | result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO;
|
| 4398 | return this;
|
| 4399 | }
|
| 4400 |
|
| 4401 | public bool HasOptionalForeignEnum {
|
| 4402 | get { return result.HasOptionalForeignEnum; }
|
| 4403 | }
|
| 4404 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
|
| 4405 | get { return result.OptionalForeignEnum; }
|
| 4406 | set { SetOptionalForeignEnum(value); }
|
| 4407 | }
|
| 4408 | public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 4409 | result.hasOptionalForeignEnum = true;
|
| 4410 | result.optionalForeignEnum_ = value;
|
| 4411 | return this;
|
| 4412 | }
|
| 4413 | public Builder ClearOptionalForeignEnum() {
|
| 4414 | result.hasOptionalForeignEnum = false;
|
| 4415 | result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
|
| 4416 | return this;
|
| 4417 | }
|
| 4418 |
|
| 4419 | public bool HasOptionalImportEnum {
|
| 4420 | get { return result.HasOptionalImportEnum; }
|
| 4421 | }
|
| 4422 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum {
|
| 4423 | get { return result.OptionalImportEnum; }
|
| 4424 | set { SetOptionalImportEnum(value); }
|
| 4425 | }
|
| 4426 | public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 4427 | result.hasOptionalImportEnum = true;
|
| 4428 | result.optionalImportEnum_ = value;
|
| 4429 | return this;
|
| 4430 | }
|
| 4431 | public Builder ClearOptionalImportEnum() {
|
| 4432 | result.hasOptionalImportEnum = false;
|
| 4433 | result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO;
|
| 4434 | return this;
|
| 4435 | }
|
| 4436 |
|
| 4437 | public bool HasOptionalStringPiece {
|
| 4438 | get { return result.HasOptionalStringPiece; }
|
| 4439 | }
|
| 4440 | public string OptionalStringPiece {
|
| 4441 | get { return result.OptionalStringPiece; }
|
| 4442 | set { SetOptionalStringPiece(value); }
|
| 4443 | }
|
| 4444 | public Builder SetOptionalStringPiece(string value) {
|
| 4445 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4446 | result.hasOptionalStringPiece = true;
|
| 4447 | result.optionalStringPiece_ = value;
|
| 4448 | return this;
|
| 4449 | }
|
| 4450 | public Builder ClearOptionalStringPiece() {
|
| 4451 | result.hasOptionalStringPiece = false;
|
| 4452 | result.optionalStringPiece_ = "";
|
| 4453 | return this;
|
| 4454 | }
|
| 4455 |
|
| 4456 | public bool HasOptionalCord {
|
| 4457 | get { return result.HasOptionalCord; }
|
| 4458 | }
|
| 4459 | public string OptionalCord {
|
| 4460 | get { return result.OptionalCord; }
|
| 4461 | set { SetOptionalCord(value); }
|
| 4462 | }
|
| 4463 | public Builder SetOptionalCord(string value) {
|
| 4464 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4465 | result.hasOptionalCord = true;
|
| 4466 | result.optionalCord_ = value;
|
| 4467 | return this;
|
| 4468 | }
|
| 4469 | public Builder ClearOptionalCord() {
|
| 4470 | result.hasOptionalCord = false;
|
| 4471 | result.optionalCord_ = "";
|
| 4472 | return this;
|
| 4473 | }
|
| 4474 |
|
| 4475 | public pbc::IPopsicleList<int> RepeatedInt32List {
|
| 4476 | get { return result.repeatedInt32_; }
|
| 4477 | }
|
| 4478 | public int RepeatedInt32Count {
|
| 4479 | get { return result.RepeatedInt32Count; }
|
| 4480 | }
|
| 4481 | public int GetRepeatedInt32(int index) {
|
| 4482 | return result.GetRepeatedInt32(index);
|
| 4483 | }
|
| 4484 | public Builder SetRepeatedInt32(int index, int value) {
|
| 4485 | result.repeatedInt32_[index] = value;
|
| 4486 | return this;
|
| 4487 | }
|
| 4488 | public Builder AddRepeatedInt32(int value) {
|
| 4489 | result.repeatedInt32_.Add(value);
|
| 4490 | return this;
|
| 4491 | }
|
| 4492 | public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
|
| 4493 | base.AddRange(values, result.repeatedInt32_);
|
| 4494 | return this;
|
| 4495 | }
|
| 4496 | public Builder ClearRepeatedInt32() {
|
| 4497 | result.repeatedInt32_.Clear();
|
| 4498 | return this;
|
| 4499 | }
|
| 4500 |
|
| 4501 | public pbc::IPopsicleList<long> RepeatedInt64List {
|
| 4502 | get { return result.repeatedInt64_; }
|
| 4503 | }
|
| 4504 | public int RepeatedInt64Count {
|
| 4505 | get { return result.RepeatedInt64Count; }
|
| 4506 | }
|
| 4507 | public long GetRepeatedInt64(int index) {
|
| 4508 | return result.GetRepeatedInt64(index);
|
| 4509 | }
|
| 4510 | public Builder SetRepeatedInt64(int index, long value) {
|
| 4511 | result.repeatedInt64_[index] = value;
|
| 4512 | return this;
|
| 4513 | }
|
| 4514 | public Builder AddRepeatedInt64(long value) {
|
| 4515 | result.repeatedInt64_.Add(value);
|
| 4516 | return this;
|
| 4517 | }
|
| 4518 | public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
|
| 4519 | base.AddRange(values, result.repeatedInt64_);
|
| 4520 | return this;
|
| 4521 | }
|
| 4522 | public Builder ClearRepeatedInt64() {
|
| 4523 | result.repeatedInt64_.Clear();
|
| 4524 | return this;
|
| 4525 | }
|
| 4526 |
|
| 4527 | [global::System.CLSCompliant(false)]
|
| 4528 | public pbc::IPopsicleList<uint> RepeatedUint32List {
|
| 4529 | get { return result.repeatedUint32_; }
|
| 4530 | }
|
| 4531 | public int RepeatedUint32Count {
|
| 4532 | get { return result.RepeatedUint32Count; }
|
| 4533 | }
|
| 4534 | [global::System.CLSCompliant(false)]
|
| 4535 | public uint GetRepeatedUint32(int index) {
|
| 4536 | return result.GetRepeatedUint32(index);
|
| 4537 | }
|
| 4538 | [global::System.CLSCompliant(false)]
|
| 4539 | public Builder SetRepeatedUint32(int index, uint value) {
|
| 4540 | result.repeatedUint32_[index] = value;
|
| 4541 | return this;
|
| 4542 | }
|
| 4543 | [global::System.CLSCompliant(false)]
|
| 4544 | public Builder AddRepeatedUint32(uint value) {
|
| 4545 | result.repeatedUint32_.Add(value);
|
| 4546 | return this;
|
| 4547 | }
|
| 4548 | [global::System.CLSCompliant(false)]
|
| 4549 | public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
|
| 4550 | base.AddRange(values, result.repeatedUint32_);
|
| 4551 | return this;
|
| 4552 | }
|
| 4553 | public Builder ClearRepeatedUint32() {
|
| 4554 | result.repeatedUint32_.Clear();
|
| 4555 | return this;
|
| 4556 | }
|
| 4557 |
|
| 4558 | [global::System.CLSCompliant(false)]
|
| 4559 | public pbc::IPopsicleList<ulong> RepeatedUint64List {
|
| 4560 | get { return result.repeatedUint64_; }
|
| 4561 | }
|
| 4562 | public int RepeatedUint64Count {
|
| 4563 | get { return result.RepeatedUint64Count; }
|
| 4564 | }
|
| 4565 | [global::System.CLSCompliant(false)]
|
| 4566 | public ulong GetRepeatedUint64(int index) {
|
| 4567 | return result.GetRepeatedUint64(index);
|
| 4568 | }
|
| 4569 | [global::System.CLSCompliant(false)]
|
| 4570 | public Builder SetRepeatedUint64(int index, ulong value) {
|
| 4571 | result.repeatedUint64_[index] = value;
|
| 4572 | return this;
|
| 4573 | }
|
| 4574 | [global::System.CLSCompliant(false)]
|
| 4575 | public Builder AddRepeatedUint64(ulong value) {
|
| 4576 | result.repeatedUint64_.Add(value);
|
| 4577 | return this;
|
| 4578 | }
|
| 4579 | [global::System.CLSCompliant(false)]
|
| 4580 | public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
|
| 4581 | base.AddRange(values, result.repeatedUint64_);
|
| 4582 | return this;
|
| 4583 | }
|
| 4584 | public Builder ClearRepeatedUint64() {
|
| 4585 | result.repeatedUint64_.Clear();
|
| 4586 | return this;
|
| 4587 | }
|
| 4588 |
|
| 4589 | public pbc::IPopsicleList<int> RepeatedSint32List {
|
| 4590 | get { return result.repeatedSint32_; }
|
| 4591 | }
|
| 4592 | public int RepeatedSint32Count {
|
| 4593 | get { return result.RepeatedSint32Count; }
|
| 4594 | }
|
| 4595 | public int GetRepeatedSint32(int index) {
|
| 4596 | return result.GetRepeatedSint32(index);
|
| 4597 | }
|
| 4598 | public Builder SetRepeatedSint32(int index, int value) {
|
| 4599 | result.repeatedSint32_[index] = value;
|
| 4600 | return this;
|
| 4601 | }
|
| 4602 | public Builder AddRepeatedSint32(int value) {
|
| 4603 | result.repeatedSint32_.Add(value);
|
| 4604 | return this;
|
| 4605 | }
|
| 4606 | public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
|
| 4607 | base.AddRange(values, result.repeatedSint32_);
|
| 4608 | return this;
|
| 4609 | }
|
| 4610 | public Builder ClearRepeatedSint32() {
|
| 4611 | result.repeatedSint32_.Clear();
|
| 4612 | return this;
|
| 4613 | }
|
| 4614 |
|
| 4615 | public pbc::IPopsicleList<long> RepeatedSint64List {
|
| 4616 | get { return result.repeatedSint64_; }
|
| 4617 | }
|
| 4618 | public int RepeatedSint64Count {
|
| 4619 | get { return result.RepeatedSint64Count; }
|
| 4620 | }
|
| 4621 | public long GetRepeatedSint64(int index) {
|
| 4622 | return result.GetRepeatedSint64(index);
|
| 4623 | }
|
| 4624 | public Builder SetRepeatedSint64(int index, long value) {
|
| 4625 | result.repeatedSint64_[index] = value;
|
| 4626 | return this;
|
| 4627 | }
|
| 4628 | public Builder AddRepeatedSint64(long value) {
|
| 4629 | result.repeatedSint64_.Add(value);
|
| 4630 | return this;
|
| 4631 | }
|
| 4632 | public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
|
| 4633 | base.AddRange(values, result.repeatedSint64_);
|
| 4634 | return this;
|
| 4635 | }
|
| 4636 | public Builder ClearRepeatedSint64() {
|
| 4637 | result.repeatedSint64_.Clear();
|
| 4638 | return this;
|
| 4639 | }
|
| 4640 |
|
| 4641 | [global::System.CLSCompliant(false)]
|
| 4642 | public pbc::IPopsicleList<uint> RepeatedFixed32List {
|
| 4643 | get { return result.repeatedFixed32_; }
|
| 4644 | }
|
| 4645 | public int RepeatedFixed32Count {
|
| 4646 | get { return result.RepeatedFixed32Count; }
|
| 4647 | }
|
| 4648 | [global::System.CLSCompliant(false)]
|
| 4649 | public uint GetRepeatedFixed32(int index) {
|
| 4650 | return result.GetRepeatedFixed32(index);
|
| 4651 | }
|
| 4652 | [global::System.CLSCompliant(false)]
|
| 4653 | public Builder SetRepeatedFixed32(int index, uint value) {
|
| 4654 | result.repeatedFixed32_[index] = value;
|
| 4655 | return this;
|
| 4656 | }
|
| 4657 | [global::System.CLSCompliant(false)]
|
| 4658 | public Builder AddRepeatedFixed32(uint value) {
|
| 4659 | result.repeatedFixed32_.Add(value);
|
| 4660 | return this;
|
| 4661 | }
|
| 4662 | [global::System.CLSCompliant(false)]
|
| 4663 | public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
|
| 4664 | base.AddRange(values, result.repeatedFixed32_);
|
| 4665 | return this;
|
| 4666 | }
|
| 4667 | public Builder ClearRepeatedFixed32() {
|
| 4668 | result.repeatedFixed32_.Clear();
|
| 4669 | return this;
|
| 4670 | }
|
| 4671 |
|
| 4672 | [global::System.CLSCompliant(false)]
|
| 4673 | public pbc::IPopsicleList<ulong> RepeatedFixed64List {
|
| 4674 | get { return result.repeatedFixed64_; }
|
| 4675 | }
|
| 4676 | public int RepeatedFixed64Count {
|
| 4677 | get { return result.RepeatedFixed64Count; }
|
| 4678 | }
|
| 4679 | [global::System.CLSCompliant(false)]
|
| 4680 | public ulong GetRepeatedFixed64(int index) {
|
| 4681 | return result.GetRepeatedFixed64(index);
|
| 4682 | }
|
| 4683 | [global::System.CLSCompliant(false)]
|
| 4684 | public Builder SetRepeatedFixed64(int index, ulong value) {
|
| 4685 | result.repeatedFixed64_[index] = value;
|
| 4686 | return this;
|
| 4687 | }
|
| 4688 | [global::System.CLSCompliant(false)]
|
| 4689 | public Builder AddRepeatedFixed64(ulong value) {
|
| 4690 | result.repeatedFixed64_.Add(value);
|
| 4691 | return this;
|
| 4692 | }
|
| 4693 | [global::System.CLSCompliant(false)]
|
| 4694 | public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
|
| 4695 | base.AddRange(values, result.repeatedFixed64_);
|
| 4696 | return this;
|
| 4697 | }
|
| 4698 | public Builder ClearRepeatedFixed64() {
|
| 4699 | result.repeatedFixed64_.Clear();
|
| 4700 | return this;
|
| 4701 | }
|
| 4702 |
|
| 4703 | public pbc::IPopsicleList<int> RepeatedSfixed32List {
|
| 4704 | get { return result.repeatedSfixed32_; }
|
| 4705 | }
|
| 4706 | public int RepeatedSfixed32Count {
|
| 4707 | get { return result.RepeatedSfixed32Count; }
|
| 4708 | }
|
| 4709 | public int GetRepeatedSfixed32(int index) {
|
| 4710 | return result.GetRepeatedSfixed32(index);
|
| 4711 | }
|
| 4712 | public Builder SetRepeatedSfixed32(int index, int value) {
|
| 4713 | result.repeatedSfixed32_[index] = value;
|
| 4714 | return this;
|
| 4715 | }
|
| 4716 | public Builder AddRepeatedSfixed32(int value) {
|
| 4717 | result.repeatedSfixed32_.Add(value);
|
| 4718 | return this;
|
| 4719 | }
|
| 4720 | public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
|
| 4721 | base.AddRange(values, result.repeatedSfixed32_);
|
| 4722 | return this;
|
| 4723 | }
|
| 4724 | public Builder ClearRepeatedSfixed32() {
|
| 4725 | result.repeatedSfixed32_.Clear();
|
| 4726 | return this;
|
| 4727 | }
|
| 4728 |
|
| 4729 | public pbc::IPopsicleList<long> RepeatedSfixed64List {
|
| 4730 | get { return result.repeatedSfixed64_; }
|
| 4731 | }
|
| 4732 | public int RepeatedSfixed64Count {
|
| 4733 | get { return result.RepeatedSfixed64Count; }
|
| 4734 | }
|
| 4735 | public long GetRepeatedSfixed64(int index) {
|
| 4736 | return result.GetRepeatedSfixed64(index);
|
| 4737 | }
|
| 4738 | public Builder SetRepeatedSfixed64(int index, long value) {
|
| 4739 | result.repeatedSfixed64_[index] = value;
|
| 4740 | return this;
|
| 4741 | }
|
| 4742 | public Builder AddRepeatedSfixed64(long value) {
|
| 4743 | result.repeatedSfixed64_.Add(value);
|
| 4744 | return this;
|
| 4745 | }
|
| 4746 | public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
|
| 4747 | base.AddRange(values, result.repeatedSfixed64_);
|
| 4748 | return this;
|
| 4749 | }
|
| 4750 | public Builder ClearRepeatedSfixed64() {
|
| 4751 | result.repeatedSfixed64_.Clear();
|
| 4752 | return this;
|
| 4753 | }
|
| 4754 |
|
| 4755 | public pbc::IPopsicleList<float> RepeatedFloatList {
|
| 4756 | get { return result.repeatedFloat_; }
|
| 4757 | }
|
| 4758 | public int RepeatedFloatCount {
|
| 4759 | get { return result.RepeatedFloatCount; }
|
| 4760 | }
|
| 4761 | public float GetRepeatedFloat(int index) {
|
| 4762 | return result.GetRepeatedFloat(index);
|
| 4763 | }
|
| 4764 | public Builder SetRepeatedFloat(int index, float value) {
|
| 4765 | result.repeatedFloat_[index] = value;
|
| 4766 | return this;
|
| 4767 | }
|
| 4768 | public Builder AddRepeatedFloat(float value) {
|
| 4769 | result.repeatedFloat_.Add(value);
|
| 4770 | return this;
|
| 4771 | }
|
| 4772 | public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
|
| 4773 | base.AddRange(values, result.repeatedFloat_);
|
| 4774 | return this;
|
| 4775 | }
|
| 4776 | public Builder ClearRepeatedFloat() {
|
| 4777 | result.repeatedFloat_.Clear();
|
| 4778 | return this;
|
| 4779 | }
|
| 4780 |
|
| 4781 | public pbc::IPopsicleList<double> RepeatedDoubleList {
|
| 4782 | get { return result.repeatedDouble_; }
|
| 4783 | }
|
| 4784 | public int RepeatedDoubleCount {
|
| 4785 | get { return result.RepeatedDoubleCount; }
|
| 4786 | }
|
| 4787 | public double GetRepeatedDouble(int index) {
|
| 4788 | return result.GetRepeatedDouble(index);
|
| 4789 | }
|
| 4790 | public Builder SetRepeatedDouble(int index, double value) {
|
| 4791 | result.repeatedDouble_[index] = value;
|
| 4792 | return this;
|
| 4793 | }
|
| 4794 | public Builder AddRepeatedDouble(double value) {
|
| 4795 | result.repeatedDouble_.Add(value);
|
| 4796 | return this;
|
| 4797 | }
|
| 4798 | public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
|
| 4799 | base.AddRange(values, result.repeatedDouble_);
|
| 4800 | return this;
|
| 4801 | }
|
| 4802 | public Builder ClearRepeatedDouble() {
|
| 4803 | result.repeatedDouble_.Clear();
|
| 4804 | return this;
|
| 4805 | }
|
| 4806 |
|
| 4807 | public pbc::IPopsicleList<bool> RepeatedBoolList {
|
| 4808 | get { return result.repeatedBool_; }
|
| 4809 | }
|
| 4810 | public int RepeatedBoolCount {
|
| 4811 | get { return result.RepeatedBoolCount; }
|
| 4812 | }
|
| 4813 | public bool GetRepeatedBool(int index) {
|
| 4814 | return result.GetRepeatedBool(index);
|
| 4815 | }
|
| 4816 | public Builder SetRepeatedBool(int index, bool value) {
|
| 4817 | result.repeatedBool_[index] = value;
|
| 4818 | return this;
|
| 4819 | }
|
| 4820 | public Builder AddRepeatedBool(bool value) {
|
| 4821 | result.repeatedBool_.Add(value);
|
| 4822 | return this;
|
| 4823 | }
|
| 4824 | public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
|
| 4825 | base.AddRange(values, result.repeatedBool_);
|
| 4826 | return this;
|
| 4827 | }
|
| 4828 | public Builder ClearRepeatedBool() {
|
| 4829 | result.repeatedBool_.Clear();
|
| 4830 | return this;
|
| 4831 | }
|
| 4832 |
|
| 4833 | public pbc::IPopsicleList<string> RepeatedStringList {
|
| 4834 | get { return result.repeatedString_; }
|
| 4835 | }
|
| 4836 | public int RepeatedStringCount {
|
| 4837 | get { return result.RepeatedStringCount; }
|
| 4838 | }
|
| 4839 | public string GetRepeatedString(int index) {
|
| 4840 | return result.GetRepeatedString(index);
|
| 4841 | }
|
| 4842 | public Builder SetRepeatedString(int index, string value) {
|
| 4843 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4844 | result.repeatedString_[index] = value;
|
| 4845 | return this;
|
| 4846 | }
|
| 4847 | public Builder AddRepeatedString(string value) {
|
| 4848 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4849 | result.repeatedString_.Add(value);
|
| 4850 | return this;
|
| 4851 | }
|
| 4852 | public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
|
| 4853 | base.AddRange(values, result.repeatedString_);
|
| 4854 | return this;
|
| 4855 | }
|
| 4856 | public Builder ClearRepeatedString() {
|
| 4857 | result.repeatedString_.Clear();
|
| 4858 | return this;
|
| 4859 | }
|
| 4860 |
|
| 4861 | public pbc::IPopsicleList<pb::ByteString> RepeatedBytesList {
|
| 4862 | get { return result.repeatedBytes_; }
|
| 4863 | }
|
| 4864 | public int RepeatedBytesCount {
|
| 4865 | get { return result.RepeatedBytesCount; }
|
| 4866 | }
|
| 4867 | public pb::ByteString GetRepeatedBytes(int index) {
|
| 4868 | return result.GetRepeatedBytes(index);
|
| 4869 | }
|
| 4870 | public Builder SetRepeatedBytes(int index, pb::ByteString value) {
|
| 4871 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4872 | result.repeatedBytes_[index] = value;
|
| 4873 | return this;
|
| 4874 | }
|
| 4875 | public Builder AddRepeatedBytes(pb::ByteString value) {
|
| 4876 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4877 | result.repeatedBytes_.Add(value);
|
| 4878 | return this;
|
| 4879 | }
|
| 4880 | public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
|
| 4881 | base.AddRange(values, result.repeatedBytes_);
|
| 4882 | return this;
|
| 4883 | }
|
| 4884 | public Builder ClearRepeatedBytes() {
|
| 4885 | result.repeatedBytes_.Clear();
|
| 4886 | return this;
|
| 4887 | }
|
| 4888 |
|
| 4889 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
|
| 4890 | get { return result.repeatedGroup_; }
|
| 4891 | }
|
| 4892 | public int RepeatedGroupCount {
|
| 4893 | get { return result.RepeatedGroupCount; }
|
| 4894 | }
|
| 4895 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
|
| 4896 | return result.GetRepeatedGroup(index);
|
| 4897 | }
|
| 4898 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
|
| 4899 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4900 | result.repeatedGroup_[index] = value;
|
| 4901 | return this;
|
| 4902 | }
|
| 4903 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) {
|
| 4904 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4905 | result.repeatedGroup_[index] = builderForValue.Build();
|
| 4906 | return this;
|
| 4907 | }
|
| 4908 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
|
| 4909 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4910 | result.repeatedGroup_.Add(value);
|
| 4911 | return this;
|
| 4912 | }
|
| 4913 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) {
|
| 4914 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4915 | result.repeatedGroup_.Add(builderForValue.Build());
|
| 4916 | return this;
|
| 4917 | }
|
| 4918 | public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> values) {
|
| 4919 | base.AddRange(values, result.repeatedGroup_);
|
| 4920 | return this;
|
| 4921 | }
|
| 4922 | public Builder ClearRepeatedGroup() {
|
| 4923 | result.repeatedGroup_.Clear();
|
| 4924 | return this;
|
| 4925 | }
|
| 4926 |
|
| 4927 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
|
| 4928 | get { return result.repeatedNestedMessage_; }
|
| 4929 | }
|
| 4930 | public int RepeatedNestedMessageCount {
|
| 4931 | get { return result.RepeatedNestedMessageCount; }
|
| 4932 | }
|
| 4933 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
|
| 4934 | return result.GetRepeatedNestedMessage(index);
|
| 4935 | }
|
| 4936 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 4937 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4938 | result.repeatedNestedMessage_[index] = value;
|
| 4939 | return this;
|
| 4940 | }
|
| 4941 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 4942 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4943 | result.repeatedNestedMessage_[index] = builderForValue.Build();
|
| 4944 | return this;
|
| 4945 | }
|
| 4946 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 4947 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4948 | result.repeatedNestedMessage_.Add(value);
|
| 4949 | return this;
|
| 4950 | }
|
| 4951 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 4952 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4953 | result.repeatedNestedMessage_.Add(builderForValue.Build());
|
| 4954 | return this;
|
| 4955 | }
|
| 4956 | public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> values) {
|
| 4957 | base.AddRange(values, result.repeatedNestedMessage_);
|
| 4958 | return this;
|
| 4959 | }
|
| 4960 | public Builder ClearRepeatedNestedMessage() {
|
| 4961 | result.repeatedNestedMessage_.Clear();
|
| 4962 | return this;
|
| 4963 | }
|
| 4964 |
|
| 4965 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList {
|
| 4966 | get { return result.repeatedForeignMessage_; }
|
| 4967 | }
|
| 4968 | public int RepeatedForeignMessageCount {
|
| 4969 | get { return result.RepeatedForeignMessageCount; }
|
| 4970 | }
|
| 4971 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
|
| 4972 | return result.GetRepeatedForeignMessage(index);
|
| 4973 | }
|
| 4974 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 4975 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4976 | result.repeatedForeignMessage_[index] = value;
|
| 4977 | return this;
|
| 4978 | }
|
| 4979 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 4980 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4981 | result.repeatedForeignMessage_[index] = builderForValue.Build();
|
| 4982 | return this;
|
| 4983 | }
|
| 4984 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 4985 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4986 | result.repeatedForeignMessage_.Add(value);
|
| 4987 | return this;
|
| 4988 | }
|
| 4989 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 4990 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4991 | result.repeatedForeignMessage_.Add(builderForValue.Build());
|
| 4992 | return this;
|
| 4993 | }
|
| 4994 | public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> values) {
|
| 4995 | base.AddRange(values, result.repeatedForeignMessage_);
|
| 4996 | return this;
|
| 4997 | }
|
| 4998 | public Builder ClearRepeatedForeignMessage() {
|
| 4999 | result.repeatedForeignMessage_.Clear();
|
| 5000 | return this;
|
| 5001 | }
|
| 5002 |
|
| 5003 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
|
| 5004 | get { return result.repeatedImportMessage_; }
|
| 5005 | }
|
| 5006 | public int RepeatedImportMessageCount {
|
| 5007 | get { return result.RepeatedImportMessageCount; }
|
| 5008 | }
|
| 5009 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
|
| 5010 | return result.GetRepeatedImportMessage(index);
|
| 5011 | }
|
| 5012 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 5013 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5014 | result.repeatedImportMessage_[index] = value;
|
| 5015 | return this;
|
| 5016 | }
|
| 5017 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 5018 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5019 | result.repeatedImportMessage_[index] = builderForValue.Build();
|
| 5020 | return this;
|
| 5021 | }
|
| 5022 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 5023 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5024 | result.repeatedImportMessage_.Add(value);
|
| 5025 | return this;
|
| 5026 | }
|
| 5027 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 5028 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5029 | result.repeatedImportMessage_.Add(builderForValue.Build());
|
| 5030 | return this;
|
| 5031 | }
|
| 5032 | public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> values) {
|
| 5033 | base.AddRange(values, result.repeatedImportMessage_);
|
| 5034 | return this;
|
| 5035 | }
|
| 5036 | public Builder ClearRepeatedImportMessage() {
|
| 5037 | result.repeatedImportMessage_.Clear();
|
| 5038 | return this;
|
| 5039 | }
|
| 5040 |
|
| 5041 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
|
| 5042 | get { return result.repeatedNestedEnum_; }
|
| 5043 | }
|
| 5044 | public int RepeatedNestedEnumCount {
|
| 5045 | get { return result.RepeatedNestedEnumCount; }
|
| 5046 | }
|
| 5047 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
|
| 5048 | return result.GetRepeatedNestedEnum(index);
|
| 5049 | }
|
| 5050 | public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5051 | result.repeatedNestedEnum_[index] = value;
|
| 5052 | return this;
|
| 5053 | }
|
| 5054 | public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5055 | result.repeatedNestedEnum_.Add(value);
|
| 5056 | return this;
|
| 5057 | }
|
| 5058 | public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> values) {
|
| 5059 | base.AddRange(values, result.repeatedNestedEnum_);
|
| 5060 | return this;
|
| 5061 | }
|
| 5062 | public Builder ClearRepeatedNestedEnum() {
|
| 5063 | result.repeatedNestedEnum_.Clear();
|
| 5064 | return this;
|
| 5065 | }
|
| 5066 |
|
| 5067 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList {
|
| 5068 | get { return result.repeatedForeignEnum_; }
|
| 5069 | }
|
| 5070 | public int RepeatedForeignEnumCount {
|
| 5071 | get { return result.RepeatedForeignEnumCount; }
|
| 5072 | }
|
| 5073 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
|
| 5074 | return result.GetRepeatedForeignEnum(index);
|
| 5075 | }
|
| 5076 | public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5077 | result.repeatedForeignEnum_[index] = value;
|
| 5078 | return this;
|
| 5079 | }
|
| 5080 | public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5081 | result.repeatedForeignEnum_.Add(value);
|
| 5082 | return this;
|
| 5083 | }
|
| 5084 | public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
|
| 5085 | base.AddRange(values, result.repeatedForeignEnum_);
|
| 5086 | return this;
|
| 5087 | }
|
| 5088 | public Builder ClearRepeatedForeignEnum() {
|
| 5089 | result.repeatedForeignEnum_.Clear();
|
| 5090 | return this;
|
| 5091 | }
|
| 5092 |
|
| 5093 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
|
| 5094 | get { return result.repeatedImportEnum_; }
|
| 5095 | }
|
| 5096 | public int RepeatedImportEnumCount {
|
| 5097 | get { return result.RepeatedImportEnumCount; }
|
| 5098 | }
|
| 5099 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) {
|
| 5100 | return result.GetRepeatedImportEnum(index);
|
| 5101 | }
|
| 5102 | public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5103 | result.repeatedImportEnum_[index] = value;
|
| 5104 | return this;
|
| 5105 | }
|
| 5106 | public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5107 | result.repeatedImportEnum_.Add(value);
|
| 5108 | return this;
|
| 5109 | }
|
| 5110 | public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> values) {
|
| 5111 | base.AddRange(values, result.repeatedImportEnum_);
|
| 5112 | return this;
|
| 5113 | }
|
| 5114 | public Builder ClearRepeatedImportEnum() {
|
| 5115 | result.repeatedImportEnum_.Clear();
|
| 5116 | return this;
|
| 5117 | }
|
| 5118 |
|
| 5119 | public pbc::IPopsicleList<string> RepeatedStringPieceList {
|
| 5120 | get { return result.repeatedStringPiece_; }
|
| 5121 | }
|
| 5122 | public int RepeatedStringPieceCount {
|
| 5123 | get { return result.RepeatedStringPieceCount; }
|
| 5124 | }
|
| 5125 | public string GetRepeatedStringPiece(int index) {
|
| 5126 | return result.GetRepeatedStringPiece(index);
|
| 5127 | }
|
| 5128 | public Builder SetRepeatedStringPiece(int index, string value) {
|
| 5129 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5130 | result.repeatedStringPiece_[index] = value;
|
| 5131 | return this;
|
| 5132 | }
|
| 5133 | public Builder AddRepeatedStringPiece(string value) {
|
| 5134 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5135 | result.repeatedStringPiece_.Add(value);
|
| 5136 | return this;
|
| 5137 | }
|
| 5138 | public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
|
| 5139 | base.AddRange(values, result.repeatedStringPiece_);
|
| 5140 | return this;
|
| 5141 | }
|
| 5142 | public Builder ClearRepeatedStringPiece() {
|
| 5143 | result.repeatedStringPiece_.Clear();
|
| 5144 | return this;
|
| 5145 | }
|
| 5146 |
|
| 5147 | public pbc::IPopsicleList<string> RepeatedCordList {
|
| 5148 | get { return result.repeatedCord_; }
|
| 5149 | }
|
| 5150 | public int RepeatedCordCount {
|
| 5151 | get { return result.RepeatedCordCount; }
|
| 5152 | }
|
| 5153 | public string GetRepeatedCord(int index) {
|
| 5154 | return result.GetRepeatedCord(index);
|
| 5155 | }
|
| 5156 | public Builder SetRepeatedCord(int index, string value) {
|
| 5157 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5158 | result.repeatedCord_[index] = value;
|
| 5159 | return this;
|
| 5160 | }
|
| 5161 | public Builder AddRepeatedCord(string value) {
|
| 5162 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5163 | result.repeatedCord_.Add(value);
|
| 5164 | return this;
|
| 5165 | }
|
| 5166 | public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
|
| 5167 | base.AddRange(values, result.repeatedCord_);
|
| 5168 | return this;
|
| 5169 | }
|
| 5170 | public Builder ClearRepeatedCord() {
|
| 5171 | result.repeatedCord_.Clear();
|
| 5172 | return this;
|
| 5173 | }
|
| 5174 |
|
| 5175 | public bool HasDefaultInt32 {
|
| 5176 | get { return result.HasDefaultInt32; }
|
| 5177 | }
|
| 5178 | public int DefaultInt32 {
|
| 5179 | get { return result.DefaultInt32; }
|
| 5180 | set { SetDefaultInt32(value); }
|
| 5181 | }
|
| 5182 | public Builder SetDefaultInt32(int value) {
|
| 5183 | result.hasDefaultInt32 = true;
|
| 5184 | result.defaultInt32_ = value;
|
| 5185 | return this;
|
| 5186 | }
|
| 5187 | public Builder ClearDefaultInt32() {
|
| 5188 | result.hasDefaultInt32 = false;
|
| 5189 | result.defaultInt32_ = 41;
|
| 5190 | return this;
|
| 5191 | }
|
| 5192 |
|
| 5193 | public bool HasDefaultInt64 {
|
| 5194 | get { return result.HasDefaultInt64; }
|
| 5195 | }
|
| 5196 | public long DefaultInt64 {
|
| 5197 | get { return result.DefaultInt64; }
|
| 5198 | set { SetDefaultInt64(value); }
|
| 5199 | }
|
| 5200 | public Builder SetDefaultInt64(long value) {
|
| 5201 | result.hasDefaultInt64 = true;
|
| 5202 | result.defaultInt64_ = value;
|
| 5203 | return this;
|
| 5204 | }
|
| 5205 | public Builder ClearDefaultInt64() {
|
| 5206 | result.hasDefaultInt64 = false;
|
| 5207 | result.defaultInt64_ = 42L;
|
| 5208 | return this;
|
| 5209 | }
|
| 5210 |
|
| 5211 | public bool HasDefaultUint32 {
|
| 5212 | get { return result.HasDefaultUint32; }
|
| 5213 | }
|
| 5214 | [global::System.CLSCompliant(false)]
|
| 5215 | public uint DefaultUint32 {
|
| 5216 | get { return result.DefaultUint32; }
|
| 5217 | set { SetDefaultUint32(value); }
|
| 5218 | }
|
| 5219 | [global::System.CLSCompliant(false)]
|
| 5220 | public Builder SetDefaultUint32(uint value) {
|
| 5221 | result.hasDefaultUint32 = true;
|
| 5222 | result.defaultUint32_ = value;
|
| 5223 | return this;
|
| 5224 | }
|
| 5225 | public Builder ClearDefaultUint32() {
|
| 5226 | result.hasDefaultUint32 = false;
|
| 5227 | result.defaultUint32_ = 43;
|
| 5228 | return this;
|
| 5229 | }
|
| 5230 |
|
| 5231 | public bool HasDefaultUint64 {
|
| 5232 | get { return result.HasDefaultUint64; }
|
| 5233 | }
|
| 5234 | [global::System.CLSCompliant(false)]
|
| 5235 | public ulong DefaultUint64 {
|
| 5236 | get { return result.DefaultUint64; }
|
| 5237 | set { SetDefaultUint64(value); }
|
| 5238 | }
|
| 5239 | [global::System.CLSCompliant(false)]
|
| 5240 | public Builder SetDefaultUint64(ulong value) {
|
| 5241 | result.hasDefaultUint64 = true;
|
| 5242 | result.defaultUint64_ = value;
|
| 5243 | return this;
|
| 5244 | }
|
| 5245 | public Builder ClearDefaultUint64() {
|
| 5246 | result.hasDefaultUint64 = false;
|
| 5247 | result.defaultUint64_ = 44UL;
|
| 5248 | return this;
|
| 5249 | }
|
| 5250 |
|
| 5251 | public bool HasDefaultSint32 {
|
| 5252 | get { return result.HasDefaultSint32; }
|
| 5253 | }
|
| 5254 | public int DefaultSint32 {
|
| 5255 | get { return result.DefaultSint32; }
|
| 5256 | set { SetDefaultSint32(value); }
|
| 5257 | }
|
| 5258 | public Builder SetDefaultSint32(int value) {
|
| 5259 | result.hasDefaultSint32 = true;
|
| 5260 | result.defaultSint32_ = value;
|
| 5261 | return this;
|
| 5262 | }
|
| 5263 | public Builder ClearDefaultSint32() {
|
| 5264 | result.hasDefaultSint32 = false;
|
| 5265 | result.defaultSint32_ = -45;
|
| 5266 | return this;
|
| 5267 | }
|
| 5268 |
|
| 5269 | public bool HasDefaultSint64 {
|
| 5270 | get { return result.HasDefaultSint64; }
|
| 5271 | }
|
| 5272 | public long DefaultSint64 {
|
| 5273 | get { return result.DefaultSint64; }
|
| 5274 | set { SetDefaultSint64(value); }
|
| 5275 | }
|
| 5276 | public Builder SetDefaultSint64(long value) {
|
| 5277 | result.hasDefaultSint64 = true;
|
| 5278 | result.defaultSint64_ = value;
|
| 5279 | return this;
|
| 5280 | }
|
| 5281 | public Builder ClearDefaultSint64() {
|
| 5282 | result.hasDefaultSint64 = false;
|
| 5283 | result.defaultSint64_ = 46;
|
| 5284 | return this;
|
| 5285 | }
|
| 5286 |
|
| 5287 | public bool HasDefaultFixed32 {
|
| 5288 | get { return result.HasDefaultFixed32; }
|
| 5289 | }
|
| 5290 | [global::System.CLSCompliant(false)]
|
| 5291 | public uint DefaultFixed32 {
|
| 5292 | get { return result.DefaultFixed32; }
|
| 5293 | set { SetDefaultFixed32(value); }
|
| 5294 | }
|
| 5295 | [global::System.CLSCompliant(false)]
|
| 5296 | public Builder SetDefaultFixed32(uint value) {
|
| 5297 | result.hasDefaultFixed32 = true;
|
| 5298 | result.defaultFixed32_ = value;
|
| 5299 | return this;
|
| 5300 | }
|
| 5301 | public Builder ClearDefaultFixed32() {
|
| 5302 | result.hasDefaultFixed32 = false;
|
| 5303 | result.defaultFixed32_ = 47;
|
| 5304 | return this;
|
| 5305 | }
|
| 5306 |
|
| 5307 | public bool HasDefaultFixed64 {
|
| 5308 | get { return result.HasDefaultFixed64; }
|
| 5309 | }
|
| 5310 | [global::System.CLSCompliant(false)]
|
| 5311 | public ulong DefaultFixed64 {
|
| 5312 | get { return result.DefaultFixed64; }
|
| 5313 | set { SetDefaultFixed64(value); }
|
| 5314 | }
|
| 5315 | [global::System.CLSCompliant(false)]
|
| 5316 | public Builder SetDefaultFixed64(ulong value) {
|
| 5317 | result.hasDefaultFixed64 = true;
|
| 5318 | result.defaultFixed64_ = value;
|
| 5319 | return this;
|
| 5320 | }
|
| 5321 | public Builder ClearDefaultFixed64() {
|
| 5322 | result.hasDefaultFixed64 = false;
|
| 5323 | result.defaultFixed64_ = 48;
|
| 5324 | return this;
|
| 5325 | }
|
| 5326 |
|
| 5327 | public bool HasDefaultSfixed32 {
|
| 5328 | get { return result.HasDefaultSfixed32; }
|
| 5329 | }
|
| 5330 | public int DefaultSfixed32 {
|
| 5331 | get { return result.DefaultSfixed32; }
|
| 5332 | set { SetDefaultSfixed32(value); }
|
| 5333 | }
|
| 5334 | public Builder SetDefaultSfixed32(int value) {
|
| 5335 | result.hasDefaultSfixed32 = true;
|
| 5336 | result.defaultSfixed32_ = value;
|
| 5337 | return this;
|
| 5338 | }
|
| 5339 | public Builder ClearDefaultSfixed32() {
|
| 5340 | result.hasDefaultSfixed32 = false;
|
| 5341 | result.defaultSfixed32_ = 49;
|
| 5342 | return this;
|
| 5343 | }
|
| 5344 |
|
| 5345 | public bool HasDefaultSfixed64 {
|
| 5346 | get { return result.HasDefaultSfixed64; }
|
| 5347 | }
|
| 5348 | public long DefaultSfixed64 {
|
| 5349 | get { return result.DefaultSfixed64; }
|
| 5350 | set { SetDefaultSfixed64(value); }
|
| 5351 | }
|
| 5352 | public Builder SetDefaultSfixed64(long value) {
|
| 5353 | result.hasDefaultSfixed64 = true;
|
| 5354 | result.defaultSfixed64_ = value;
|
| 5355 | return this;
|
| 5356 | }
|
| 5357 | public Builder ClearDefaultSfixed64() {
|
| 5358 | result.hasDefaultSfixed64 = false;
|
| 5359 | result.defaultSfixed64_ = -50;
|
| 5360 | return this;
|
| 5361 | }
|
| 5362 |
|
| 5363 | public bool HasDefaultFloat {
|
| 5364 | get { return result.HasDefaultFloat; }
|
| 5365 | }
|
| 5366 | public float DefaultFloat {
|
| 5367 | get { return result.DefaultFloat; }
|
| 5368 | set { SetDefaultFloat(value); }
|
| 5369 | }
|
| 5370 | public Builder SetDefaultFloat(float value) {
|
| 5371 | result.hasDefaultFloat = true;
|
| 5372 | result.defaultFloat_ = value;
|
| 5373 | return this;
|
| 5374 | }
|
| 5375 | public Builder ClearDefaultFloat() {
|
| 5376 | result.hasDefaultFloat = false;
|
| 5377 | result.defaultFloat_ = 51.5F;
|
| 5378 | return this;
|
| 5379 | }
|
| 5380 |
|
| 5381 | public bool HasDefaultDouble {
|
| 5382 | get { return result.HasDefaultDouble; }
|
| 5383 | }
|
| 5384 | public double DefaultDouble {
|
| 5385 | get { return result.DefaultDouble; }
|
| 5386 | set { SetDefaultDouble(value); }
|
| 5387 | }
|
| 5388 | public Builder SetDefaultDouble(double value) {
|
| 5389 | result.hasDefaultDouble = true;
|
| 5390 | result.defaultDouble_ = value;
|
| 5391 | return this;
|
| 5392 | }
|
| 5393 | public Builder ClearDefaultDouble() {
|
| 5394 | result.hasDefaultDouble = false;
|
| 5395 | result.defaultDouble_ = 52000D;
|
| 5396 | return this;
|
| 5397 | }
|
| 5398 |
|
| 5399 | public bool HasDefaultBool {
|
| 5400 | get { return result.HasDefaultBool; }
|
| 5401 | }
|
| 5402 | public bool DefaultBool {
|
| 5403 | get { return result.DefaultBool; }
|
| 5404 | set { SetDefaultBool(value); }
|
| 5405 | }
|
| 5406 | public Builder SetDefaultBool(bool value) {
|
| 5407 | result.hasDefaultBool = true;
|
| 5408 | result.defaultBool_ = value;
|
| 5409 | return this;
|
| 5410 | }
|
| 5411 | public Builder ClearDefaultBool() {
|
| 5412 | result.hasDefaultBool = false;
|
| 5413 | result.defaultBool_ = true;
|
| 5414 | return this;
|
| 5415 | }
|
| 5416 |
|
| 5417 | public bool HasDefaultString {
|
| 5418 | get { return result.HasDefaultString; }
|
| 5419 | }
|
| 5420 | public string DefaultString {
|
| 5421 | get { return result.DefaultString; }
|
| 5422 | set { SetDefaultString(value); }
|
| 5423 | }
|
| 5424 | public Builder SetDefaultString(string value) {
|
| 5425 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5426 | result.hasDefaultString = true;
|
| 5427 | result.defaultString_ = value;
|
| 5428 | return this;
|
| 5429 | }
|
| 5430 | public Builder ClearDefaultString() {
|
| 5431 | result.hasDefaultString = false;
|
| 5432 | result.defaultString_ = "hello";
|
| 5433 | return this;
|
| 5434 | }
|
| 5435 |
|
| 5436 | public bool HasDefaultBytes {
|
| 5437 | get { return result.HasDefaultBytes; }
|
| 5438 | }
|
| 5439 | public pb::ByteString DefaultBytes {
|
| 5440 | get { return result.DefaultBytes; }
|
| 5441 | set { SetDefaultBytes(value); }
|
| 5442 | }
|
| 5443 | public Builder SetDefaultBytes(pb::ByteString value) {
|
| 5444 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5445 | result.hasDefaultBytes = true;
|
| 5446 | result.defaultBytes_ = value;
|
| 5447 | return this;
|
| 5448 | }
|
| 5449 | public Builder ClearDefaultBytes() {
|
| 5450 | result.hasDefaultBytes = false;
|
| 5451 | result.defaultBytes_ = ByteString.FromBase64("d29ybGQ=");
|
| 5452 | return this;
|
| 5453 | }
|
| 5454 |
|
| 5455 | public bool HasDefaultNestedEnum {
|
| 5456 | get { return result.HasDefaultNestedEnum; }
|
| 5457 | }
|
| 5458 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
|
| 5459 | get { return result.DefaultNestedEnum; }
|
| 5460 | set { SetDefaultNestedEnum(value); }
|
| 5461 | }
|
| 5462 | public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5463 | result.hasDefaultNestedEnum = true;
|
| 5464 | result.defaultNestedEnum_ = value;
|
| 5465 | return this;
|
| 5466 | }
|
| 5467 | public Builder ClearDefaultNestedEnum() {
|
| 5468 | result.hasDefaultNestedEnum = false;
|
| 5469 | result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR;
|
| 5470 | return this;
|
| 5471 | }
|
| 5472 |
|
| 5473 | public bool HasDefaultForeignEnum {
|
| 5474 | get { return result.HasDefaultForeignEnum; }
|
| 5475 | }
|
| 5476 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
|
| 5477 | get { return result.DefaultForeignEnum; }
|
| 5478 | set { SetDefaultForeignEnum(value); }
|
| 5479 | }
|
| 5480 | public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5481 | result.hasDefaultForeignEnum = true;
|
| 5482 | result.defaultForeignEnum_ = value;
|
| 5483 | return this;
|
| 5484 | }
|
| 5485 | public Builder ClearDefaultForeignEnum() {
|
| 5486 | result.hasDefaultForeignEnum = false;
|
| 5487 | result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
|
| 5488 | return this;
|
| 5489 | }
|
| 5490 |
|
| 5491 | public bool HasDefaultImportEnum {
|
| 5492 | get { return result.HasDefaultImportEnum; }
|
| 5493 | }
|
| 5494 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum {
|
| 5495 | get { return result.DefaultImportEnum; }
|
| 5496 | set { SetDefaultImportEnum(value); }
|
| 5497 | }
|
| 5498 | public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5499 | result.hasDefaultImportEnum = true;
|
| 5500 | result.defaultImportEnum_ = value;
|
| 5501 | return this;
|
| 5502 | }
|
| 5503 | public Builder ClearDefaultImportEnum() {
|
| 5504 | result.hasDefaultImportEnum = false;
|
| 5505 | result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR;
|
| 5506 | return this;
|
| 5507 | }
|
| 5508 |
|
| 5509 | public bool HasDefaultStringPiece {
|
| 5510 | get { return result.HasDefaultStringPiece; }
|
| 5511 | }
|
| 5512 | public string DefaultStringPiece {
|
| 5513 | get { return result.DefaultStringPiece; }
|
| 5514 | set { SetDefaultStringPiece(value); }
|
| 5515 | }
|
| 5516 | public Builder SetDefaultStringPiece(string value) {
|
| 5517 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5518 | result.hasDefaultStringPiece = true;
|
| 5519 | result.defaultStringPiece_ = value;
|
| 5520 | return this;
|
| 5521 | }
|
| 5522 | public Builder ClearDefaultStringPiece() {
|
| 5523 | result.hasDefaultStringPiece = false;
|
| 5524 | result.defaultStringPiece_ = "abc";
|
| 5525 | return this;
|
| 5526 | }
|
| 5527 |
|
| 5528 | public bool HasDefaultCord {
|
| 5529 | get { return result.HasDefaultCord; }
|
| 5530 | }
|
| 5531 | public string DefaultCord {
|
| 5532 | get { return result.DefaultCord; }
|
| 5533 | set { SetDefaultCord(value); }
|
| 5534 | }
|
| 5535 | public Builder SetDefaultCord(string value) {
|
| 5536 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5537 | result.hasDefaultCord = true;
|
| 5538 | result.defaultCord_ = value;
|
| 5539 | return this;
|
| 5540 | }
|
| 5541 | public Builder ClearDefaultCord() {
|
| 5542 | result.hasDefaultCord = false;
|
| 5543 | result.defaultCord_ = "123";
|
| 5544 | return this;
|
| 5545 | }
|
| 5546 | }
|
| 5547 | static TestAllTypesLite() {
|
| 5548 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 5549 | }
|
| 5550 | }
|
| 5551 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 5552 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 5553 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 5554 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5555 | public sealed partial class ForeignMessageLite : pb::GeneratedMessageLite<ForeignMessageLite, ForeignMessageLite.Builder> {
|
| 5556 | private static readonly ForeignMessageLite defaultInstance = new Builder().BuildPartial();
|
| 5557 | public static ForeignMessageLite DefaultInstance {
|
| 5558 | get { return defaultInstance; }
|
| 5559 | }
|
| 5560 |
|
| 5561 | public override ForeignMessageLite DefaultInstanceForType {
|
| 5562 | get { return defaultInstance; }
|
| 5563 | }
|
| 5564 |
|
| 5565 | protected override ForeignMessageLite ThisMessage {
|
| 5566 | get { return this; }
|
| 5567 | }
|
| 5568 |
|
| 5569 | public const int CFieldNumber = 1;
|
| 5570 | private bool hasC;
|
| 5571 | private int c_ = 0;
|
| 5572 | public bool HasC {
|
| 5573 | get { return hasC; }
|
| 5574 | }
|
| 5575 | public int C {
|
| 5576 | get { return c_; }
|
| 5577 | }
|
| 5578 |
|
| 5579 | public override bool IsInitialized {
|
| 5580 | get {
|
| 5581 | return true;
|
| 5582 | }
|
| 5583 | }
|
| 5584 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 5585 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5586 | int size = SerializedSize;
|
| 5587 | if (HasC) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 5588 | output.WriteInt32(1, "c", C);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5589 | }
|
| 5590 | }
|
| 5591 |
|
| 5592 | private int memoizedSerializedSize = -1;
|
| 5593 | public override int SerializedSize {
|
| 5594 | get {
|
| 5595 | int size = memoizedSerializedSize;
|
| 5596 | if (size != -1) return size;
|
| 5597 |
|
| 5598 | size = 0;
|
| 5599 | if (HasC) {
|
| 5600 | size += pb::CodedOutputStream.ComputeInt32Size(1, C);
|
| 5601 | }
|
| 5602 | memoizedSerializedSize = size;
|
| 5603 | return size;
|
| 5604 | }
|
| 5605 | }
|
| 5606 |
|
| 5607 | #region Lite runtime methods
|
| 5608 | public override int GetHashCode() {
|
| 5609 | int hash = GetType().GetHashCode();
|
| 5610 | if (hasC) hash ^= c_.GetHashCode();
|
| 5611 | return hash;
|
| 5612 | }
|
| 5613 |
|
| 5614 | public override bool Equals(object obj) {
|
| 5615 | ForeignMessageLite other = obj as ForeignMessageLite;
|
| 5616 | if (other == null) return false;
|
| 5617 | if (hasC != other.hasC || (hasC && !c_.Equals(other.c_))) return false;
|
| 5618 | return true;
|
| 5619 | }
|
| 5620 |
|
| 5621 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 5622 | PrintField("c", hasC, c_, writer);
|
| 5623 | }
|
| 5624 | #endregion
|
| 5625 |
|
| 5626 | public static ForeignMessageLite ParseFrom(pb::ByteString data) {
|
| 5627 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 5628 | }
|
| 5629 | public static ForeignMessageLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 5630 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 5631 | }
|
| 5632 | public static ForeignMessageLite ParseFrom(byte[] data) {
|
| 5633 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 5634 | }
|
| 5635 | public static ForeignMessageLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 5636 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 5637 | }
|
| 5638 | public static ForeignMessageLite ParseFrom(global::System.IO.Stream input) {
|
| 5639 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 5640 | }
|
| 5641 | public static ForeignMessageLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 5642 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 5643 | }
|
| 5644 | public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 5645 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 5646 | }
|
| 5647 | public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 5648 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 5649 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 5650 | public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5651 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 5652 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 5653 | public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5654 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 5655 | }
|
| 5656 | public static Builder CreateBuilder() { return new Builder(); }
|
| 5657 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 5658 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 5659 | public static Builder CreateBuilder(ForeignMessageLite prototype) {
|
| 5660 | return (Builder) new Builder().MergeFrom(prototype);
|
| 5661 | }
|
| 5662 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 5663 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 5664 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 5665 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5666 | public sealed partial class Builder : pb::GeneratedBuilderLite<ForeignMessageLite, Builder> {
|
| 5667 | protected override Builder ThisBuilder {
|
| 5668 | get { return this; }
|
| 5669 | }
|
| 5670 | public Builder() {}
|
| 5671 |
|
| 5672 | ForeignMessageLite result = new ForeignMessageLite();
|
| 5673 |
|
| 5674 | protected override ForeignMessageLite MessageBeingBuilt {
|
| 5675 | get { return result; }
|
| 5676 | }
|
| 5677 |
|
| 5678 | public override Builder Clear() {
|
| 5679 | result = new ForeignMessageLite();
|
| 5680 | return this;
|
| 5681 | }
|
| 5682 |
|
| 5683 | public override Builder Clone() {
|
| 5684 | return new Builder().MergeFrom(result);
|
| 5685 | }
|
| 5686 |
|
| 5687 | public override ForeignMessageLite DefaultInstanceForType {
|
| 5688 | get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; }
|
| 5689 | }
|
| 5690 |
|
| 5691 | public override ForeignMessageLite BuildPartial() {
|
| 5692 | if (result == null) {
|
| 5693 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 5694 | }
|
| 5695 | ForeignMessageLite returnMe = result;
|
| 5696 | result = null;
|
| 5697 | return returnMe;
|
| 5698 | }
|
| 5699 |
|
| 5700 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 5701 | if (other is ForeignMessageLite) {
|
| 5702 | return MergeFrom((ForeignMessageLite) other);
|
| 5703 | } else {
|
| 5704 | base.MergeFrom(other);
|
| 5705 | return this;
|
| 5706 | }
|
| 5707 | }
|
| 5708 |
|
| 5709 | public override Builder MergeFrom(ForeignMessageLite other) {
|
| 5710 | if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) return this;
|
| 5711 | if (other.HasC) {
|
| 5712 | C = other.C;
|
| 5713 | }
|
| 5714 | return this;
|
| 5715 | }
|
| 5716 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 5717 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5718 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 5719 | }
|
| 5720 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 5721 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 5722 | uint tag;
|
| 5723 | string field_name;
|
| 5724 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5725 | switch (tag) {
|
| 5726 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 5727 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5728 | }
|
| 5729 | default: {
|
| 5730 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 5731 | return this;
|
| 5732 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 5733 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5734 | break;
|
| 5735 | }
|
| 5736 | case 8: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 5737 | result.hasC |= input.ReadInt32(ref result.c_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5738 | break;
|
| 5739 | }
|
| 5740 | }
|
| 5741 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 5742 |
|
| 5743 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5744 | }
|
| 5745 |
|
| 5746 |
|
| 5747 | public bool HasC {
|
| 5748 | get { return result.HasC; }
|
| 5749 | }
|
| 5750 | public int C {
|
| 5751 | get { return result.C; }
|
| 5752 | set { SetC(value); }
|
| 5753 | }
|
| 5754 | public Builder SetC(int value) {
|
| 5755 | result.hasC = true;
|
| 5756 | result.c_ = value;
|
| 5757 | return this;
|
| 5758 | }
|
| 5759 | public Builder ClearC() {
|
| 5760 | result.hasC = false;
|
| 5761 | result.c_ = 0;
|
| 5762 | return this;
|
| 5763 | }
|
| 5764 | }
|
| 5765 | static ForeignMessageLite() {
|
| 5766 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 5767 | }
|
| 5768 | }
|
| 5769 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 5770 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 5771 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 5772 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5773 | public sealed partial class TestPackedTypesLite : pb::GeneratedMessageLite<TestPackedTypesLite, TestPackedTypesLite.Builder> {
|
| 5774 | private static readonly TestPackedTypesLite defaultInstance = new Builder().BuildPartial();
|
| 5775 | public static TestPackedTypesLite DefaultInstance {
|
| 5776 | get { return defaultInstance; }
|
| 5777 | }
|
| 5778 |
|
| 5779 | public override TestPackedTypesLite DefaultInstanceForType {
|
| 5780 | get { return defaultInstance; }
|
| 5781 | }
|
| 5782 |
|
| 5783 | protected override TestPackedTypesLite ThisMessage {
|
| 5784 | get { return this; }
|
| 5785 | }
|
| 5786 |
|
| 5787 | public const int PackedInt32FieldNumber = 90;
|
| 5788 | private int packedInt32MemoizedSerializedSize;
|
| 5789 | private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>();
|
| 5790 | public scg::IList<int> PackedInt32List {
|
| 5791 | get { return pbc::Lists.AsReadOnly(packedInt32_); }
|
| 5792 | }
|
| 5793 | public int PackedInt32Count {
|
| 5794 | get { return packedInt32_.Count; }
|
| 5795 | }
|
| 5796 | public int GetPackedInt32(int index) {
|
| 5797 | return packedInt32_[index];
|
| 5798 | }
|
| 5799 |
|
| 5800 | public const int PackedInt64FieldNumber = 91;
|
| 5801 | private int packedInt64MemoizedSerializedSize;
|
| 5802 | private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>();
|
| 5803 | public scg::IList<long> PackedInt64List {
|
| 5804 | get { return pbc::Lists.AsReadOnly(packedInt64_); }
|
| 5805 | }
|
| 5806 | public int PackedInt64Count {
|
| 5807 | get { return packedInt64_.Count; }
|
| 5808 | }
|
| 5809 | public long GetPackedInt64(int index) {
|
| 5810 | return packedInt64_[index];
|
| 5811 | }
|
| 5812 |
|
| 5813 | public const int PackedUint32FieldNumber = 92;
|
| 5814 | private int packedUint32MemoizedSerializedSize;
|
| 5815 | private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>();
|
| 5816 | [global::System.CLSCompliant(false)]
|
| 5817 | public scg::IList<uint> PackedUint32List {
|
| 5818 | get { return pbc::Lists.AsReadOnly(packedUint32_); }
|
| 5819 | }
|
| 5820 | public int PackedUint32Count {
|
| 5821 | get { return packedUint32_.Count; }
|
| 5822 | }
|
| 5823 | [global::System.CLSCompliant(false)]
|
| 5824 | public uint GetPackedUint32(int index) {
|
| 5825 | return packedUint32_[index];
|
| 5826 | }
|
| 5827 |
|
| 5828 | public const int PackedUint64FieldNumber = 93;
|
| 5829 | private int packedUint64MemoizedSerializedSize;
|
| 5830 | private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>();
|
| 5831 | [global::System.CLSCompliant(false)]
|
| 5832 | public scg::IList<ulong> PackedUint64List {
|
| 5833 | get { return pbc::Lists.AsReadOnly(packedUint64_); }
|
| 5834 | }
|
| 5835 | public int PackedUint64Count {
|
| 5836 | get { return packedUint64_.Count; }
|
| 5837 | }
|
| 5838 | [global::System.CLSCompliant(false)]
|
| 5839 | public ulong GetPackedUint64(int index) {
|
| 5840 | return packedUint64_[index];
|
| 5841 | }
|
| 5842 |
|
| 5843 | public const int PackedSint32FieldNumber = 94;
|
| 5844 | private int packedSint32MemoizedSerializedSize;
|
| 5845 | private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>();
|
| 5846 | public scg::IList<int> PackedSint32List {
|
| 5847 | get { return pbc::Lists.AsReadOnly(packedSint32_); }
|
| 5848 | }
|
| 5849 | public int PackedSint32Count {
|
| 5850 | get { return packedSint32_.Count; }
|
| 5851 | }
|
| 5852 | public int GetPackedSint32(int index) {
|
| 5853 | return packedSint32_[index];
|
| 5854 | }
|
| 5855 |
|
| 5856 | public const int PackedSint64FieldNumber = 95;
|
| 5857 | private int packedSint64MemoizedSerializedSize;
|
| 5858 | private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>();
|
| 5859 | public scg::IList<long> PackedSint64List {
|
| 5860 | get { return pbc::Lists.AsReadOnly(packedSint64_); }
|
| 5861 | }
|
| 5862 | public int PackedSint64Count {
|
| 5863 | get { return packedSint64_.Count; }
|
| 5864 | }
|
| 5865 | public long GetPackedSint64(int index) {
|
| 5866 | return packedSint64_[index];
|
| 5867 | }
|
| 5868 |
|
| 5869 | public const int PackedFixed32FieldNumber = 96;
|
| 5870 | private int packedFixed32MemoizedSerializedSize;
|
| 5871 | private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>();
|
| 5872 | [global::System.CLSCompliant(false)]
|
| 5873 | public scg::IList<uint> PackedFixed32List {
|
| 5874 | get { return pbc::Lists.AsReadOnly(packedFixed32_); }
|
| 5875 | }
|
| 5876 | public int PackedFixed32Count {
|
| 5877 | get { return packedFixed32_.Count; }
|
| 5878 | }
|
| 5879 | [global::System.CLSCompliant(false)]
|
| 5880 | public uint GetPackedFixed32(int index) {
|
| 5881 | return packedFixed32_[index];
|
| 5882 | }
|
| 5883 |
|
| 5884 | public const int PackedFixed64FieldNumber = 97;
|
| 5885 | private int packedFixed64MemoizedSerializedSize;
|
| 5886 | private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>();
|
| 5887 | [global::System.CLSCompliant(false)]
|
| 5888 | public scg::IList<ulong> PackedFixed64List {
|
| 5889 | get { return pbc::Lists.AsReadOnly(packedFixed64_); }
|
| 5890 | }
|
| 5891 | public int PackedFixed64Count {
|
| 5892 | get { return packedFixed64_.Count; }
|
| 5893 | }
|
| 5894 | [global::System.CLSCompliant(false)]
|
| 5895 | public ulong GetPackedFixed64(int index) {
|
| 5896 | return packedFixed64_[index];
|
| 5897 | }
|
| 5898 |
|
| 5899 | public const int PackedSfixed32FieldNumber = 98;
|
| 5900 | private int packedSfixed32MemoizedSerializedSize;
|
| 5901 | private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>();
|
| 5902 | public scg::IList<int> PackedSfixed32List {
|
| 5903 | get { return pbc::Lists.AsReadOnly(packedSfixed32_); }
|
| 5904 | }
|
| 5905 | public int PackedSfixed32Count {
|
| 5906 | get { return packedSfixed32_.Count; }
|
| 5907 | }
|
| 5908 | public int GetPackedSfixed32(int index) {
|
| 5909 | return packedSfixed32_[index];
|
| 5910 | }
|
| 5911 |
|
| 5912 | public const int PackedSfixed64FieldNumber = 99;
|
| 5913 | private int packedSfixed64MemoizedSerializedSize;
|
| 5914 | private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>();
|
| 5915 | public scg::IList<long> PackedSfixed64List {
|
| 5916 | get { return pbc::Lists.AsReadOnly(packedSfixed64_); }
|
| 5917 | }
|
| 5918 | public int PackedSfixed64Count {
|
| 5919 | get { return packedSfixed64_.Count; }
|
| 5920 | }
|
| 5921 | public long GetPackedSfixed64(int index) {
|
| 5922 | return packedSfixed64_[index];
|
| 5923 | }
|
| 5924 |
|
| 5925 | public const int PackedFloatFieldNumber = 100;
|
| 5926 | private int packedFloatMemoizedSerializedSize;
|
| 5927 | private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>();
|
| 5928 | public scg::IList<float> PackedFloatList {
|
| 5929 | get { return pbc::Lists.AsReadOnly(packedFloat_); }
|
| 5930 | }
|
| 5931 | public int PackedFloatCount {
|
| 5932 | get { return packedFloat_.Count; }
|
| 5933 | }
|
| 5934 | public float GetPackedFloat(int index) {
|
| 5935 | return packedFloat_[index];
|
| 5936 | }
|
| 5937 |
|
| 5938 | public const int PackedDoubleFieldNumber = 101;
|
| 5939 | private int packedDoubleMemoizedSerializedSize;
|
| 5940 | private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>();
|
| 5941 | public scg::IList<double> PackedDoubleList {
|
| 5942 | get { return pbc::Lists.AsReadOnly(packedDouble_); }
|
| 5943 | }
|
| 5944 | public int PackedDoubleCount {
|
| 5945 | get { return packedDouble_.Count; }
|
| 5946 | }
|
| 5947 | public double GetPackedDouble(int index) {
|
| 5948 | return packedDouble_[index];
|
| 5949 | }
|
| 5950 |
|
| 5951 | public const int PackedBoolFieldNumber = 102;
|
| 5952 | private int packedBoolMemoizedSerializedSize;
|
| 5953 | private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>();
|
| 5954 | public scg::IList<bool> PackedBoolList {
|
| 5955 | get { return pbc::Lists.AsReadOnly(packedBool_); }
|
| 5956 | }
|
| 5957 | public int PackedBoolCount {
|
| 5958 | get { return packedBool_.Count; }
|
| 5959 | }
|
| 5960 | public bool GetPackedBool(int index) {
|
| 5961 | return packedBool_[index];
|
| 5962 | }
|
| 5963 |
|
| 5964 | public const int PackedEnumFieldNumber = 103;
|
| 5965 | private int packedEnumMemoizedSerializedSize;
|
| 5966 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
|
| 5967 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList {
|
| 5968 | get { return pbc::Lists.AsReadOnly(packedEnum_); }
|
| 5969 | }
|
| 5970 | public int PackedEnumCount {
|
| 5971 | get { return packedEnum_.Count; }
|
| 5972 | }
|
| 5973 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
|
| 5974 | return packedEnum_[index];
|
| 5975 | }
|
| 5976 |
|
| 5977 | public override bool IsInitialized {
|
| 5978 | get {
|
| 5979 | return true;
|
| 5980 | }
|
| 5981 | }
|
| 5982 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 5983 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5984 | int size = SerializedSize;
|
| 5985 | if (packedInt32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 5986 | output.WritePackedArray(pbd::FieldType.Int32, 90, "packed_int32", packedInt32MemoizedSerializedSize, packedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5987 | }
|
| 5988 | if (packedInt64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 5989 | output.WritePackedArray(pbd::FieldType.Int64, 91, "packed_int64", packedInt64MemoizedSerializedSize, packedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5990 | }
|
| 5991 | if (packedUint32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 5992 | output.WritePackedArray(pbd::FieldType.UInt32, 92, "packed_uint32", packedUint32MemoizedSerializedSize, packedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5993 | }
|
| 5994 | if (packedUint64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 5995 | output.WritePackedArray(pbd::FieldType.UInt64, 93, "packed_uint64", packedUint64MemoizedSerializedSize, packedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5996 | }
|
| 5997 | if (packedSint32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 5998 | output.WritePackedArray(pbd::FieldType.SInt32, 94, "packed_sint32", packedSint32MemoizedSerializedSize, packedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5999 | }
|
| 6000 | if (packedSint64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6001 | output.WritePackedArray(pbd::FieldType.SInt64, 95, "packed_sint64", packedSint64MemoizedSerializedSize, packedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6002 | }
|
| 6003 | if (packedFixed32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6004 | output.WritePackedArray(pbd::FieldType.Fixed32, 96, "packed_fixed32", packedFixed32MemoizedSerializedSize, packedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6005 | }
|
| 6006 | if (packedFixed64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6007 | output.WritePackedArray(pbd::FieldType.Fixed64, 97, "packed_fixed64", packedFixed64MemoizedSerializedSize, packedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6008 | }
|
| 6009 | if (packedSfixed32_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6010 | output.WritePackedArray(pbd::FieldType.SFixed32, 98, "packed_sfixed32", packedSfixed32MemoizedSerializedSize, packedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6011 | }
|
| 6012 | if (packedSfixed64_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6013 | output.WritePackedArray(pbd::FieldType.SFixed64, 99, "packed_sfixed64", packedSfixed64MemoizedSerializedSize, packedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6014 | }
|
| 6015 | if (packedFloat_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6016 | output.WritePackedArray(pbd::FieldType.Float, 100, "packed_float", packedFloatMemoizedSerializedSize, packedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6017 | }
|
| 6018 | if (packedDouble_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6019 | output.WritePackedArray(pbd::FieldType.Double, 101, "packed_double", packedDoubleMemoizedSerializedSize, packedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6020 | }
|
| 6021 | if (packedBool_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6022 | output.WritePackedArray(pbd::FieldType.Bool, 102, "packed_bool", packedBoolMemoizedSerializedSize, packedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6023 | }
|
| 6024 | if (packedEnum_.Count > 0) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 6025 | output.WritePackedArray(pbd::FieldType.Enum, 103, "packed_enum", packedEnumMemoizedSerializedSize, packedEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6026 | }
|
| 6027 | }
|
| 6028 |
|
| 6029 | private int memoizedSerializedSize = -1;
|
| 6030 | public override int SerializedSize {
|
| 6031 | get {
|
| 6032 | int size = memoizedSerializedSize;
|
| 6033 | if (size != -1) return size;
|
| 6034 |
|
| 6035 | size = 0;
|
| 6036 | {
|
| 6037 | int dataSize = 0;
|
| 6038 | foreach (int element in PackedInt32List) {
|
| 6039 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 6040 | }
|
| 6041 | size += dataSize;
|
| 6042 | if (packedInt32_.Count != 0) {
|
| 6043 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6044 | }
|
| 6045 | packedInt32MemoizedSerializedSize = dataSize;
|
| 6046 | }
|
| 6047 | {
|
| 6048 | int dataSize = 0;
|
| 6049 | foreach (long element in PackedInt64List) {
|
| 6050 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
|
| 6051 | }
|
| 6052 | size += dataSize;
|
| 6053 | if (packedInt64_.Count != 0) {
|
| 6054 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6055 | }
|
| 6056 | packedInt64MemoizedSerializedSize = dataSize;
|
| 6057 | }
|
| 6058 | {
|
| 6059 | int dataSize = 0;
|
| 6060 | foreach (uint element in PackedUint32List) {
|
| 6061 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
|
| 6062 | }
|
| 6063 | size += dataSize;
|
| 6064 | if (packedUint32_.Count != 0) {
|
| 6065 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6066 | }
|
| 6067 | packedUint32MemoizedSerializedSize = dataSize;
|
| 6068 | }
|
| 6069 | {
|
| 6070 | int dataSize = 0;
|
| 6071 | foreach (ulong element in PackedUint64List) {
|
| 6072 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
|
| 6073 | }
|
| 6074 | size += dataSize;
|
| 6075 | if (packedUint64_.Count != 0) {
|
| 6076 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6077 | }
|
| 6078 | packedUint64MemoizedSerializedSize = dataSize;
|
| 6079 | }
|
| 6080 | {
|
| 6081 | int dataSize = 0;
|
| 6082 | foreach (int element in PackedSint32List) {
|
| 6083 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
|
| 6084 | }
|
| 6085 | size += dataSize;
|
| 6086 | if (packedSint32_.Count != 0) {
|
| 6087 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6088 | }
|
| 6089 | packedSint32MemoizedSerializedSize = dataSize;
|
| 6090 | }
|
| 6091 | {
|
| 6092 | int dataSize = 0;
|
| 6093 | foreach (long element in PackedSint64List) {
|
| 6094 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
|
| 6095 | }
|
| 6096 | size += dataSize;
|
| 6097 | if (packedSint64_.Count != 0) {
|
| 6098 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6099 | }
|
| 6100 | packedSint64MemoizedSerializedSize = dataSize;
|
| 6101 | }
|
| 6102 | {
|
| 6103 | int dataSize = 0;
|
| 6104 | dataSize = 4 * packedFixed32_.Count;
|
| 6105 | size += dataSize;
|
| 6106 | if (packedFixed32_.Count != 0) {
|
| 6107 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6108 | }
|
| 6109 | packedFixed32MemoizedSerializedSize = dataSize;
|
| 6110 | }
|
| 6111 | {
|
| 6112 | int dataSize = 0;
|
| 6113 | dataSize = 8 * packedFixed64_.Count;
|
| 6114 | size += dataSize;
|
| 6115 | if (packedFixed64_.Count != 0) {
|
| 6116 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6117 | }
|
| 6118 | packedFixed64MemoizedSerializedSize = dataSize;
|
| 6119 | }
|
| 6120 | {
|
| 6121 | int dataSize = 0;
|
| 6122 | dataSize = 4 * packedSfixed32_.Count;
|
| 6123 | size += dataSize;
|
| 6124 | if (packedSfixed32_.Count != 0) {
|
| 6125 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6126 | }
|
| 6127 | packedSfixed32MemoizedSerializedSize = dataSize;
|
| 6128 | }
|
| 6129 | {
|
| 6130 | int dataSize = 0;
|
| 6131 | dataSize = 8 * packedSfixed64_.Count;
|
| 6132 | size += dataSize;
|
| 6133 | if (packedSfixed64_.Count != 0) {
|
| 6134 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6135 | }
|
| 6136 | packedSfixed64MemoizedSerializedSize = dataSize;
|
| 6137 | }
|
| 6138 | {
|
| 6139 | int dataSize = 0;
|
| 6140 | dataSize = 4 * packedFloat_.Count;
|
| 6141 | size += dataSize;
|
| 6142 | if (packedFloat_.Count != 0) {
|
| 6143 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6144 | }
|
| 6145 | packedFloatMemoizedSerializedSize = dataSize;
|
| 6146 | }
|
| 6147 | {
|
| 6148 | int dataSize = 0;
|
| 6149 | dataSize = 8 * packedDouble_.Count;
|
| 6150 | size += dataSize;
|
| 6151 | if (packedDouble_.Count != 0) {
|
| 6152 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6153 | }
|
| 6154 | packedDoubleMemoizedSerializedSize = dataSize;
|
| 6155 | }
|
| 6156 | {
|
| 6157 | int dataSize = 0;
|
| 6158 | dataSize = 1 * packedBool_.Count;
|
| 6159 | size += dataSize;
|
| 6160 | if (packedBool_.Count != 0) {
|
| 6161 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6162 | }
|
| 6163 | packedBoolMemoizedSerializedSize = dataSize;
|
| 6164 | }
|
| 6165 | {
|
| 6166 | int dataSize = 0;
|
| 6167 | if (packedEnum_.Count > 0) {
|
| 6168 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in packedEnum_) {
|
| 6169 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 6170 | }
|
| 6171 | size += dataSize;
|
| 6172 | size += 2;
|
| 6173 | size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize);
|
| 6174 | }
|
| 6175 | packedEnumMemoizedSerializedSize = dataSize;
|
| 6176 | }
|
| 6177 | memoizedSerializedSize = size;
|
| 6178 | return size;
|
| 6179 | }
|
| 6180 | }
|
| 6181 |
|
| 6182 | #region Lite runtime methods
|
| 6183 | public override int GetHashCode() {
|
| 6184 | int hash = GetType().GetHashCode();
|
| 6185 | foreach(int i in packedInt32_)
|
| 6186 | hash ^= i.GetHashCode();
|
| 6187 | foreach(long i in packedInt64_)
|
| 6188 | hash ^= i.GetHashCode();
|
| 6189 | foreach(uint i in packedUint32_)
|
| 6190 | hash ^= i.GetHashCode();
|
| 6191 | foreach(ulong i in packedUint64_)
|
| 6192 | hash ^= i.GetHashCode();
|
| 6193 | foreach(int i in packedSint32_)
|
| 6194 | hash ^= i.GetHashCode();
|
| 6195 | foreach(long i in packedSint64_)
|
| 6196 | hash ^= i.GetHashCode();
|
| 6197 | foreach(uint i in packedFixed32_)
|
| 6198 | hash ^= i.GetHashCode();
|
| 6199 | foreach(ulong i in packedFixed64_)
|
| 6200 | hash ^= i.GetHashCode();
|
| 6201 | foreach(int i in packedSfixed32_)
|
| 6202 | hash ^= i.GetHashCode();
|
| 6203 | foreach(long i in packedSfixed64_)
|
| 6204 | hash ^= i.GetHashCode();
|
| 6205 | foreach(float i in packedFloat_)
|
| 6206 | hash ^= i.GetHashCode();
|
| 6207 | foreach(double i in packedDouble_)
|
| 6208 | hash ^= i.GetHashCode();
|
| 6209 | foreach(bool i in packedBool_)
|
| 6210 | hash ^= i.GetHashCode();
|
| 6211 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in packedEnum_)
|
| 6212 | hash ^= i.GetHashCode();
|
| 6213 | return hash;
|
| 6214 | }
|
| 6215 |
|
| 6216 | public override bool Equals(object obj) {
|
| 6217 | TestPackedTypesLite other = obj as TestPackedTypesLite;
|
| 6218 | if (other == null) return false;
|
| 6219 | if(packedInt32_.Count != other.packedInt32_.Count) return false;
|
| 6220 | for(int ix=0; ix < packedInt32_.Count; ix++)
|
| 6221 | if(!packedInt32_[ix].Equals(other.packedInt32_[ix])) return false;
|
| 6222 | if(packedInt64_.Count != other.packedInt64_.Count) return false;
|
| 6223 | for(int ix=0; ix < packedInt64_.Count; ix++)
|
| 6224 | if(!packedInt64_[ix].Equals(other.packedInt64_[ix])) return false;
|
| 6225 | if(packedUint32_.Count != other.packedUint32_.Count) return false;
|
| 6226 | for(int ix=0; ix < packedUint32_.Count; ix++)
|
| 6227 | if(!packedUint32_[ix].Equals(other.packedUint32_[ix])) return false;
|
| 6228 | if(packedUint64_.Count != other.packedUint64_.Count) return false;
|
| 6229 | for(int ix=0; ix < packedUint64_.Count; ix++)
|
| 6230 | if(!packedUint64_[ix].Equals(other.packedUint64_[ix])) return false;
|
| 6231 | if(packedSint32_.Count != other.packedSint32_.Count) return false;
|
| 6232 | for(int ix=0; ix < packedSint32_.Count; ix++)
|
| 6233 | if(!packedSint32_[ix].Equals(other.packedSint32_[ix])) return false;
|
| 6234 | if(packedSint64_.Count != other.packedSint64_.Count) return false;
|
| 6235 | for(int ix=0; ix < packedSint64_.Count; ix++)
|
| 6236 | if(!packedSint64_[ix].Equals(other.packedSint64_[ix])) return false;
|
| 6237 | if(packedFixed32_.Count != other.packedFixed32_.Count) return false;
|
| 6238 | for(int ix=0; ix < packedFixed32_.Count; ix++)
|
| 6239 | if(!packedFixed32_[ix].Equals(other.packedFixed32_[ix])) return false;
|
| 6240 | if(packedFixed64_.Count != other.packedFixed64_.Count) return false;
|
| 6241 | for(int ix=0; ix < packedFixed64_.Count; ix++)
|
| 6242 | if(!packedFixed64_[ix].Equals(other.packedFixed64_[ix])) return false;
|
| 6243 | if(packedSfixed32_.Count != other.packedSfixed32_.Count) return false;
|
| 6244 | for(int ix=0; ix < packedSfixed32_.Count; ix++)
|
| 6245 | if(!packedSfixed32_[ix].Equals(other.packedSfixed32_[ix])) return false;
|
| 6246 | if(packedSfixed64_.Count != other.packedSfixed64_.Count) return false;
|
| 6247 | for(int ix=0; ix < packedSfixed64_.Count; ix++)
|
| 6248 | if(!packedSfixed64_[ix].Equals(other.packedSfixed64_[ix])) return false;
|
| 6249 | if(packedFloat_.Count != other.packedFloat_.Count) return false;
|
| 6250 | for(int ix=0; ix < packedFloat_.Count; ix++)
|
| 6251 | if(!packedFloat_[ix].Equals(other.packedFloat_[ix])) return false;
|
| 6252 | if(packedDouble_.Count != other.packedDouble_.Count) return false;
|
| 6253 | for(int ix=0; ix < packedDouble_.Count; ix++)
|
| 6254 | if(!packedDouble_[ix].Equals(other.packedDouble_[ix])) return false;
|
| 6255 | if(packedBool_.Count != other.packedBool_.Count) return false;
|
| 6256 | for(int ix=0; ix < packedBool_.Count; ix++)
|
| 6257 | if(!packedBool_[ix].Equals(other.packedBool_[ix])) return false;
|
| 6258 | if(packedEnum_.Count != other.packedEnum_.Count) return false;
|
| 6259 | for(int ix=0; ix < packedEnum_.Count; ix++)
|
| 6260 | if(!packedEnum_[ix].Equals(other.packedEnum_[ix])) return false;
|
| 6261 | return true;
|
| 6262 | }
|
| 6263 |
|
| 6264 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 6265 | PrintField("packed_int32", packedInt32_, writer);
|
| 6266 | PrintField("packed_int64", packedInt64_, writer);
|
| 6267 | PrintField("packed_uint32", packedUint32_, writer);
|
| 6268 | PrintField("packed_uint64", packedUint64_, writer);
|
| 6269 | PrintField("packed_sint32", packedSint32_, writer);
|
| 6270 | PrintField("packed_sint64", packedSint64_, writer);
|
| 6271 | PrintField("packed_fixed32", packedFixed32_, writer);
|
| 6272 | PrintField("packed_fixed64", packedFixed64_, writer);
|
| 6273 | PrintField("packed_sfixed32", packedSfixed32_, writer);
|
| 6274 | PrintField("packed_sfixed64", packedSfixed64_, writer);
|
| 6275 | PrintField("packed_float", packedFloat_, writer);
|
| 6276 | PrintField("packed_double", packedDouble_, writer);
|
| 6277 | PrintField("packed_bool", packedBool_, writer);
|
| 6278 | PrintField("packed_enum", packedEnum_, writer);
|
| 6279 | }
|
| 6280 | #endregion
|
| 6281 |
|
| 6282 | public static TestPackedTypesLite ParseFrom(pb::ByteString data) {
|
| 6283 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 6284 | }
|
| 6285 | public static TestPackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 6286 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 6287 | }
|
| 6288 | public static TestPackedTypesLite ParseFrom(byte[] data) {
|
| 6289 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 6290 | }
|
| 6291 | public static TestPackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 6292 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 6293 | }
|
| 6294 | public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input) {
|
| 6295 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 6296 | }
|
| 6297 | public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 6298 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 6299 | }
|
| 6300 | public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 6301 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 6302 | }
|
| 6303 | public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 6304 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 6305 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 6306 | public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6307 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 6308 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 6309 | public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6310 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 6311 | }
|
| 6312 | public static Builder CreateBuilder() { return new Builder(); }
|
| 6313 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 6314 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 6315 | public static Builder CreateBuilder(TestPackedTypesLite prototype) {
|
| 6316 | return (Builder) new Builder().MergeFrom(prototype);
|
| 6317 | }
|
| 6318 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 6319 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 6320 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 6321 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6322 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestPackedTypesLite, Builder> {
|
| 6323 | protected override Builder ThisBuilder {
|
| 6324 | get { return this; }
|
| 6325 | }
|
| 6326 | public Builder() {}
|
| 6327 |
|
| 6328 | TestPackedTypesLite result = new TestPackedTypesLite();
|
| 6329 |
|
| 6330 | protected override TestPackedTypesLite MessageBeingBuilt {
|
| 6331 | get { return result; }
|
| 6332 | }
|
| 6333 |
|
| 6334 | public override Builder Clear() {
|
| 6335 | result = new TestPackedTypesLite();
|
| 6336 | return this;
|
| 6337 | }
|
| 6338 |
|
| 6339 | public override Builder Clone() {
|
| 6340 | return new Builder().MergeFrom(result);
|
| 6341 | }
|
| 6342 |
|
| 6343 | public override TestPackedTypesLite DefaultInstanceForType {
|
| 6344 | get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance; }
|
| 6345 | }
|
| 6346 |
|
| 6347 | public override TestPackedTypesLite BuildPartial() {
|
| 6348 | if (result == null) {
|
| 6349 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 6350 | }
|
| 6351 | result.packedInt32_.MakeReadOnly();
|
| 6352 | result.packedInt64_.MakeReadOnly();
|
| 6353 | result.packedUint32_.MakeReadOnly();
|
| 6354 | result.packedUint64_.MakeReadOnly();
|
| 6355 | result.packedSint32_.MakeReadOnly();
|
| 6356 | result.packedSint64_.MakeReadOnly();
|
| 6357 | result.packedFixed32_.MakeReadOnly();
|
| 6358 | result.packedFixed64_.MakeReadOnly();
|
| 6359 | result.packedSfixed32_.MakeReadOnly();
|
| 6360 | result.packedSfixed64_.MakeReadOnly();
|
| 6361 | result.packedFloat_.MakeReadOnly();
|
| 6362 | result.packedDouble_.MakeReadOnly();
|
| 6363 | result.packedBool_.MakeReadOnly();
|
| 6364 | result.packedEnum_.MakeReadOnly();
|
| 6365 | TestPackedTypesLite returnMe = result;
|
| 6366 | result = null;
|
| 6367 | return returnMe;
|
| 6368 | }
|
| 6369 |
|
| 6370 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 6371 | if (other is TestPackedTypesLite) {
|
| 6372 | return MergeFrom((TestPackedTypesLite) other);
|
| 6373 | } else {
|
| 6374 | base.MergeFrom(other);
|
| 6375 | return this;
|
| 6376 | }
|
| 6377 | }
|
| 6378 |
|
| 6379 | public override Builder MergeFrom(TestPackedTypesLite other) {
|
| 6380 | if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance) return this;
|
| 6381 | if (other.packedInt32_.Count != 0) {
|
| 6382 | base.AddRange(other.packedInt32_, result.packedInt32_);
|
| 6383 | }
|
| 6384 | if (other.packedInt64_.Count != 0) {
|
| 6385 | base.AddRange(other.packedInt64_, result.packedInt64_);
|
| 6386 | }
|
| 6387 | if (other.packedUint32_.Count != 0) {
|
| 6388 | base.AddRange(other.packedUint32_, result.packedUint32_);
|
| 6389 | }
|
| 6390 | if (other.packedUint64_.Count != 0) {
|
| 6391 | base.AddRange(other.packedUint64_, result.packedUint64_);
|
| 6392 | }
|
| 6393 | if (other.packedSint32_.Count != 0) {
|
| 6394 | base.AddRange(other.packedSint32_, result.packedSint32_);
|
| 6395 | }
|
| 6396 | if (other.packedSint64_.Count != 0) {
|
| 6397 | base.AddRange(other.packedSint64_, result.packedSint64_);
|
| 6398 | }
|
| 6399 | if (other.packedFixed32_.Count != 0) {
|
| 6400 | base.AddRange(other.packedFixed32_, result.packedFixed32_);
|
| 6401 | }
|
| 6402 | if (other.packedFixed64_.Count != 0) {
|
| 6403 | base.AddRange(other.packedFixed64_, result.packedFixed64_);
|
| 6404 | }
|
| 6405 | if (other.packedSfixed32_.Count != 0) {
|
| 6406 | base.AddRange(other.packedSfixed32_, result.packedSfixed32_);
|
| 6407 | }
|
| 6408 | if (other.packedSfixed64_.Count != 0) {
|
| 6409 | base.AddRange(other.packedSfixed64_, result.packedSfixed64_);
|
| 6410 | }
|
| 6411 | if (other.packedFloat_.Count != 0) {
|
| 6412 | base.AddRange(other.packedFloat_, result.packedFloat_);
|
| 6413 | }
|
| 6414 | if (other.packedDouble_.Count != 0) {
|
| 6415 | base.AddRange(other.packedDouble_, result.packedDouble_);
|
| 6416 | }
|
| 6417 | if (other.packedBool_.Count != 0) {
|
| 6418 | base.AddRange(other.packedBool_, result.packedBool_);
|
| 6419 | }
|
| 6420 | if (other.packedEnum_.Count != 0) {
|
| 6421 | base.AddRange(other.packedEnum_, result.packedEnum_);
|
| 6422 | }
|
| 6423 | return this;
|
| 6424 | }
|
| 6425 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 6426 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6427 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 6428 | }
|
| 6429 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 6430 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 6431 | uint tag;
|
| 6432 | string field_name;
|
| 6433 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6434 | switch (tag) {
|
| 6435 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 6436 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6437 | }
|
| 6438 | default: {
|
| 6439 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 6440 | return this;
|
| 6441 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6442 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6443 | break;
|
| 6444 | }
|
| 6445 | case 722: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6446 | input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.packedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6447 | break;
|
| 6448 | }
|
| 6449 | case 730: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6450 | input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.packedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6451 | break;
|
| 6452 | }
|
| 6453 | case 738: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6454 | input.ReadPrimitiveArray(pbd::FieldType.UInt32, tag, field_name, result.packedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6455 | break;
|
| 6456 | }
|
| 6457 | case 746: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6458 | input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.packedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6459 | break;
|
| 6460 | }
|
| 6461 | case 754: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6462 | input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.packedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6463 | break;
|
| 6464 | }
|
| 6465 | case 762: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6466 | input.ReadPrimitiveArray(pbd::FieldType.SInt64, tag, field_name, result.packedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6467 | break;
|
| 6468 | }
|
| 6469 | case 770: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6470 | input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.packedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6471 | break;
|
| 6472 | }
|
| 6473 | case 778: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6474 | input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.packedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6475 | break;
|
| 6476 | }
|
| 6477 | case 786: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6478 | input.ReadPrimitiveArray(pbd::FieldType.SFixed32, tag, field_name, result.packedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6479 | break;
|
| 6480 | }
|
| 6481 | case 794: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6482 | input.ReadPrimitiveArray(pbd::FieldType.SFixed64, tag, field_name, result.packedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6483 | break;
|
| 6484 | }
|
| 6485 | case 802: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6486 | input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.packedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6487 | break;
|
| 6488 | }
|
| 6489 | case 810: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6490 | input.ReadPrimitiveArray(pbd::FieldType.Double, tag, field_name, result.packedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6491 | break;
|
| 6492 | }
|
| 6493 | case 818: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6494 | input.ReadPrimitiveArray(pbd::FieldType.Bool, tag, field_name, result.packedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6495 | break;
|
| 6496 | }
|
| 6497 | case 826: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6498 | scg::ICollection<object> unknownItems;
|
| 6499 | 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] | 6500 | break;
|
| 6501 | }
|
| 6502 | }
|
| 6503 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 6504 |
|
| 6505 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6506 | }
|
| 6507 |
|
| 6508 |
|
| 6509 | public pbc::IPopsicleList<int> PackedInt32List {
|
| 6510 | get { return result.packedInt32_; }
|
| 6511 | }
|
| 6512 | public int PackedInt32Count {
|
| 6513 | get { return result.PackedInt32Count; }
|
| 6514 | }
|
| 6515 | public int GetPackedInt32(int index) {
|
| 6516 | return result.GetPackedInt32(index);
|
| 6517 | }
|
| 6518 | public Builder SetPackedInt32(int index, int value) {
|
| 6519 | result.packedInt32_[index] = value;
|
| 6520 | return this;
|
| 6521 | }
|
| 6522 | public Builder AddPackedInt32(int value) {
|
| 6523 | result.packedInt32_.Add(value);
|
| 6524 | return this;
|
| 6525 | }
|
| 6526 | public Builder AddRangePackedInt32(scg::IEnumerable<int> values) {
|
| 6527 | base.AddRange(values, result.packedInt32_);
|
| 6528 | return this;
|
| 6529 | }
|
| 6530 | public Builder ClearPackedInt32() {
|
| 6531 | result.packedInt32_.Clear();
|
| 6532 | return this;
|
| 6533 | }
|
| 6534 |
|
| 6535 | public pbc::IPopsicleList<long> PackedInt64List {
|
| 6536 | get { return result.packedInt64_; }
|
| 6537 | }
|
| 6538 | public int PackedInt64Count {
|
| 6539 | get { return result.PackedInt64Count; }
|
| 6540 | }
|
| 6541 | public long GetPackedInt64(int index) {
|
| 6542 | return result.GetPackedInt64(index);
|
| 6543 | }
|
| 6544 | public Builder SetPackedInt64(int index, long value) {
|
| 6545 | result.packedInt64_[index] = value;
|
| 6546 | return this;
|
| 6547 | }
|
| 6548 | public Builder AddPackedInt64(long value) {
|
| 6549 | result.packedInt64_.Add(value);
|
| 6550 | return this;
|
| 6551 | }
|
| 6552 | public Builder AddRangePackedInt64(scg::IEnumerable<long> values) {
|
| 6553 | base.AddRange(values, result.packedInt64_);
|
| 6554 | return this;
|
| 6555 | }
|
| 6556 | public Builder ClearPackedInt64() {
|
| 6557 | result.packedInt64_.Clear();
|
| 6558 | return this;
|
| 6559 | }
|
| 6560 |
|
| 6561 | [global::System.CLSCompliant(false)]
|
| 6562 | public pbc::IPopsicleList<uint> PackedUint32List {
|
| 6563 | get { return result.packedUint32_; }
|
| 6564 | }
|
| 6565 | public int PackedUint32Count {
|
| 6566 | get { return result.PackedUint32Count; }
|
| 6567 | }
|
| 6568 | [global::System.CLSCompliant(false)]
|
| 6569 | public uint GetPackedUint32(int index) {
|
| 6570 | return result.GetPackedUint32(index);
|
| 6571 | }
|
| 6572 | [global::System.CLSCompliant(false)]
|
| 6573 | public Builder SetPackedUint32(int index, uint value) {
|
| 6574 | result.packedUint32_[index] = value;
|
| 6575 | return this;
|
| 6576 | }
|
| 6577 | [global::System.CLSCompliant(false)]
|
| 6578 | public Builder AddPackedUint32(uint value) {
|
| 6579 | result.packedUint32_.Add(value);
|
| 6580 | return this;
|
| 6581 | }
|
| 6582 | [global::System.CLSCompliant(false)]
|
| 6583 | public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) {
|
| 6584 | base.AddRange(values, result.packedUint32_);
|
| 6585 | return this;
|
| 6586 | }
|
| 6587 | public Builder ClearPackedUint32() {
|
| 6588 | result.packedUint32_.Clear();
|
| 6589 | return this;
|
| 6590 | }
|
| 6591 |
|
| 6592 | [global::System.CLSCompliant(false)]
|
| 6593 | public pbc::IPopsicleList<ulong> PackedUint64List {
|
| 6594 | get { return result.packedUint64_; }
|
| 6595 | }
|
| 6596 | public int PackedUint64Count {
|
| 6597 | get { return result.PackedUint64Count; }
|
| 6598 | }
|
| 6599 | [global::System.CLSCompliant(false)]
|
| 6600 | public ulong GetPackedUint64(int index) {
|
| 6601 | return result.GetPackedUint64(index);
|
| 6602 | }
|
| 6603 | [global::System.CLSCompliant(false)]
|
| 6604 | public Builder SetPackedUint64(int index, ulong value) {
|
| 6605 | result.packedUint64_[index] = value;
|
| 6606 | return this;
|
| 6607 | }
|
| 6608 | [global::System.CLSCompliant(false)]
|
| 6609 | public Builder AddPackedUint64(ulong value) {
|
| 6610 | result.packedUint64_.Add(value);
|
| 6611 | return this;
|
| 6612 | }
|
| 6613 | [global::System.CLSCompliant(false)]
|
| 6614 | public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) {
|
| 6615 | base.AddRange(values, result.packedUint64_);
|
| 6616 | return this;
|
| 6617 | }
|
| 6618 | public Builder ClearPackedUint64() {
|
| 6619 | result.packedUint64_.Clear();
|
| 6620 | return this;
|
| 6621 | }
|
| 6622 |
|
| 6623 | public pbc::IPopsicleList<int> PackedSint32List {
|
| 6624 | get { return result.packedSint32_; }
|
| 6625 | }
|
| 6626 | public int PackedSint32Count {
|
| 6627 | get { return result.PackedSint32Count; }
|
| 6628 | }
|
| 6629 | public int GetPackedSint32(int index) {
|
| 6630 | return result.GetPackedSint32(index);
|
| 6631 | }
|
| 6632 | public Builder SetPackedSint32(int index, int value) {
|
| 6633 | result.packedSint32_[index] = value;
|
| 6634 | return this;
|
| 6635 | }
|
| 6636 | public Builder AddPackedSint32(int value) {
|
| 6637 | result.packedSint32_.Add(value);
|
| 6638 | return this;
|
| 6639 | }
|
| 6640 | public Builder AddRangePackedSint32(scg::IEnumerable<int> values) {
|
| 6641 | base.AddRange(values, result.packedSint32_);
|
| 6642 | return this;
|
| 6643 | }
|
| 6644 | public Builder ClearPackedSint32() {
|
| 6645 | result.packedSint32_.Clear();
|
| 6646 | return this;
|
| 6647 | }
|
| 6648 |
|
| 6649 | public pbc::IPopsicleList<long> PackedSint64List {
|
| 6650 | get { return result.packedSint64_; }
|
| 6651 | }
|
| 6652 | public int PackedSint64Count {
|
| 6653 | get { return result.PackedSint64Count; }
|
| 6654 | }
|
| 6655 | public long GetPackedSint64(int index) {
|
| 6656 | return result.GetPackedSint64(index);
|
| 6657 | }
|
| 6658 | public Builder SetPackedSint64(int index, long value) {
|
| 6659 | result.packedSint64_[index] = value;
|
| 6660 | return this;
|
| 6661 | }
|
| 6662 | public Builder AddPackedSint64(long value) {
|
| 6663 | result.packedSint64_.Add(value);
|
| 6664 | return this;
|
| 6665 | }
|
| 6666 | public Builder AddRangePackedSint64(scg::IEnumerable<long> values) {
|
| 6667 | base.AddRange(values, result.packedSint64_);
|
| 6668 | return this;
|
| 6669 | }
|
| 6670 | public Builder ClearPackedSint64() {
|
| 6671 | result.packedSint64_.Clear();
|
| 6672 | return this;
|
| 6673 | }
|
| 6674 |
|
| 6675 | [global::System.CLSCompliant(false)]
|
| 6676 | public pbc::IPopsicleList<uint> PackedFixed32List {
|
| 6677 | get { return result.packedFixed32_; }
|
| 6678 | }
|
| 6679 | public int PackedFixed32Count {
|
| 6680 | get { return result.PackedFixed32Count; }
|
| 6681 | }
|
| 6682 | [global::System.CLSCompliant(false)]
|
| 6683 | public uint GetPackedFixed32(int index) {
|
| 6684 | return result.GetPackedFixed32(index);
|
| 6685 | }
|
| 6686 | [global::System.CLSCompliant(false)]
|
| 6687 | public Builder SetPackedFixed32(int index, uint value) {
|
| 6688 | result.packedFixed32_[index] = value;
|
| 6689 | return this;
|
| 6690 | }
|
| 6691 | [global::System.CLSCompliant(false)]
|
| 6692 | public Builder AddPackedFixed32(uint value) {
|
| 6693 | result.packedFixed32_.Add(value);
|
| 6694 | return this;
|
| 6695 | }
|
| 6696 | [global::System.CLSCompliant(false)]
|
| 6697 | public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) {
|
| 6698 | base.AddRange(values, result.packedFixed32_);
|
| 6699 | return this;
|
| 6700 | }
|
| 6701 | public Builder ClearPackedFixed32() {
|
| 6702 | result.packedFixed32_.Clear();
|
| 6703 | return this;
|
| 6704 | }
|
| 6705 |
|
| 6706 | [global::System.CLSCompliant(false)]
|
| 6707 | public pbc::IPopsicleList<ulong> PackedFixed64List {
|
| 6708 | get { return result.packedFixed64_; }
|
| 6709 | }
|
| 6710 | public int PackedFixed64Count {
|
| 6711 | get { return result.PackedFixed64Count; }
|
| 6712 | }
|
| 6713 | [global::System.CLSCompliant(false)]
|
| 6714 | public ulong GetPackedFixed64(int index) {
|
| 6715 | return result.GetPackedFixed64(index);
|
| 6716 | }
|
| 6717 | [global::System.CLSCompliant(false)]
|
| 6718 | public Builder SetPackedFixed64(int index, ulong value) {
|
| 6719 | result.packedFixed64_[index] = value;
|
| 6720 | return this;
|
| 6721 | }
|
| 6722 | [global::System.CLSCompliant(false)]
|
| 6723 | public Builder AddPackedFixed64(ulong value) {
|
| 6724 | result.packedFixed64_.Add(value);
|
| 6725 | return this;
|
| 6726 | }
|
| 6727 | [global::System.CLSCompliant(false)]
|
| 6728 | public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) {
|
| 6729 | base.AddRange(values, result.packedFixed64_);
|
| 6730 | return this;
|
| 6731 | }
|
| 6732 | public Builder ClearPackedFixed64() {
|
| 6733 | result.packedFixed64_.Clear();
|
| 6734 | return this;
|
| 6735 | }
|
| 6736 |
|
| 6737 | public pbc::IPopsicleList<int> PackedSfixed32List {
|
| 6738 | get { return result.packedSfixed32_; }
|
| 6739 | }
|
| 6740 | public int PackedSfixed32Count {
|
| 6741 | get { return result.PackedSfixed32Count; }
|
| 6742 | }
|
| 6743 | public int GetPackedSfixed32(int index) {
|
| 6744 | return result.GetPackedSfixed32(index);
|
| 6745 | }
|
| 6746 | public Builder SetPackedSfixed32(int index, int value) {
|
| 6747 | result.packedSfixed32_[index] = value;
|
| 6748 | return this;
|
| 6749 | }
|
| 6750 | public Builder AddPackedSfixed32(int value) {
|
| 6751 | result.packedSfixed32_.Add(value);
|
| 6752 | return this;
|
| 6753 | }
|
| 6754 | public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) {
|
| 6755 | base.AddRange(values, result.packedSfixed32_);
|
| 6756 | return this;
|
| 6757 | }
|
| 6758 | public Builder ClearPackedSfixed32() {
|
| 6759 | result.packedSfixed32_.Clear();
|
| 6760 | return this;
|
| 6761 | }
|
| 6762 |
|
| 6763 | public pbc::IPopsicleList<long> PackedSfixed64List {
|
| 6764 | get { return result.packedSfixed64_; }
|
| 6765 | }
|
| 6766 | public int PackedSfixed64Count {
|
| 6767 | get { return result.PackedSfixed64Count; }
|
| 6768 | }
|
| 6769 | public long GetPackedSfixed64(int index) {
|
| 6770 | return result.GetPackedSfixed64(index);
|
| 6771 | }
|
| 6772 | public Builder SetPackedSfixed64(int index, long value) {
|
| 6773 | result.packedSfixed64_[index] = value;
|
| 6774 | return this;
|
| 6775 | }
|
| 6776 | public Builder AddPackedSfixed64(long value) {
|
| 6777 | result.packedSfixed64_.Add(value);
|
| 6778 | return this;
|
| 6779 | }
|
| 6780 | public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) {
|
| 6781 | base.AddRange(values, result.packedSfixed64_);
|
| 6782 | return this;
|
| 6783 | }
|
| 6784 | public Builder ClearPackedSfixed64() {
|
| 6785 | result.packedSfixed64_.Clear();
|
| 6786 | return this;
|
| 6787 | }
|
| 6788 |
|
| 6789 | public pbc::IPopsicleList<float> PackedFloatList {
|
| 6790 | get { return result.packedFloat_; }
|
| 6791 | }
|
| 6792 | public int PackedFloatCount {
|
| 6793 | get { return result.PackedFloatCount; }
|
| 6794 | }
|
| 6795 | public float GetPackedFloat(int index) {
|
| 6796 | return result.GetPackedFloat(index);
|
| 6797 | }
|
| 6798 | public Builder SetPackedFloat(int index, float value) {
|
| 6799 | result.packedFloat_[index] = value;
|
| 6800 | return this;
|
| 6801 | }
|
| 6802 | public Builder AddPackedFloat(float value) {
|
| 6803 | result.packedFloat_.Add(value);
|
| 6804 | return this;
|
| 6805 | }
|
| 6806 | public Builder AddRangePackedFloat(scg::IEnumerable<float> values) {
|
| 6807 | base.AddRange(values, result.packedFloat_);
|
| 6808 | return this;
|
| 6809 | }
|
| 6810 | public Builder ClearPackedFloat() {
|
| 6811 | result.packedFloat_.Clear();
|
| 6812 | return this;
|
| 6813 | }
|
| 6814 |
|
| 6815 | public pbc::IPopsicleList<double> PackedDoubleList {
|
| 6816 | get { return result.packedDouble_; }
|
| 6817 | }
|
| 6818 | public int PackedDoubleCount {
|
| 6819 | get { return result.PackedDoubleCount; }
|
| 6820 | }
|
| 6821 | public double GetPackedDouble(int index) {
|
| 6822 | return result.GetPackedDouble(index);
|
| 6823 | }
|
| 6824 | public Builder SetPackedDouble(int index, double value) {
|
| 6825 | result.packedDouble_[index] = value;
|
| 6826 | return this;
|
| 6827 | }
|
| 6828 | public Builder AddPackedDouble(double value) {
|
| 6829 | result.packedDouble_.Add(value);
|
| 6830 | return this;
|
| 6831 | }
|
| 6832 | public Builder AddRangePackedDouble(scg::IEnumerable<double> values) {
|
| 6833 | base.AddRange(values, result.packedDouble_);
|
| 6834 | return this;
|
| 6835 | }
|
| 6836 | public Builder ClearPackedDouble() {
|
| 6837 | result.packedDouble_.Clear();
|
| 6838 | return this;
|
| 6839 | }
|
| 6840 |
|
| 6841 | public pbc::IPopsicleList<bool> PackedBoolList {
|
| 6842 | get { return result.packedBool_; }
|
| 6843 | }
|
| 6844 | public int PackedBoolCount {
|
| 6845 | get { return result.PackedBoolCount; }
|
| 6846 | }
|
| 6847 | public bool GetPackedBool(int index) {
|
| 6848 | return result.GetPackedBool(index);
|
| 6849 | }
|
| 6850 | public Builder SetPackedBool(int index, bool value) {
|
| 6851 | result.packedBool_[index] = value;
|
| 6852 | return this;
|
| 6853 | }
|
| 6854 | public Builder AddPackedBool(bool value) {
|
| 6855 | result.packedBool_.Add(value);
|
| 6856 | return this;
|
| 6857 | }
|
| 6858 | public Builder AddRangePackedBool(scg::IEnumerable<bool> values) {
|
| 6859 | base.AddRange(values, result.packedBool_);
|
| 6860 | return this;
|
| 6861 | }
|
| 6862 | public Builder ClearPackedBool() {
|
| 6863 | result.packedBool_.Clear();
|
| 6864 | return this;
|
| 6865 | }
|
| 6866 |
|
| 6867 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList {
|
| 6868 | get { return result.packedEnum_; }
|
| 6869 | }
|
| 6870 | public int PackedEnumCount {
|
| 6871 | get { return result.PackedEnumCount; }
|
| 6872 | }
|
| 6873 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
|
| 6874 | return result.GetPackedEnum(index);
|
| 6875 | }
|
| 6876 | public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 6877 | result.packedEnum_[index] = value;
|
| 6878 | return this;
|
| 6879 | }
|
| 6880 | public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 6881 | result.packedEnum_.Add(value);
|
| 6882 | return this;
|
| 6883 | }
|
| 6884 | public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
|
| 6885 | base.AddRange(values, result.packedEnum_);
|
| 6886 | return this;
|
| 6887 | }
|
| 6888 | public Builder ClearPackedEnum() {
|
| 6889 | result.packedEnum_.Clear();
|
| 6890 | return this;
|
| 6891 | }
|
| 6892 | }
|
| 6893 | static TestPackedTypesLite() {
|
| 6894 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 6895 | }
|
| 6896 | }
|
| 6897 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 6898 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 6899 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 6900 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6901 | public sealed partial class TestAllExtensionsLite : pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder> {
|
| 6902 | private static readonly TestAllExtensionsLite defaultInstance = new Builder().BuildPartial();
|
| 6903 | public static TestAllExtensionsLite DefaultInstance {
|
| 6904 | get { return defaultInstance; }
|
| 6905 | }
|
| 6906 |
|
| 6907 | public override TestAllExtensionsLite DefaultInstanceForType {
|
| 6908 | get { return defaultInstance; }
|
| 6909 | }
|
| 6910 |
|
| 6911 | protected override TestAllExtensionsLite ThisMessage {
|
| 6912 | get { return this; }
|
| 6913 | }
|
| 6914 |
|
| 6915 | public override bool IsInitialized {
|
| 6916 | get {
|
| 6917 | if (!ExtensionsAreInitialized) return false;
|
| 6918 | return true;
|
| 6919 | }
|
| 6920 | }
|
| 6921 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 6922 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6923 | int size = SerializedSize;
|
| 6924 | pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
|
| 6925 | extensionWriter.WriteUntil(536870912, output);
|
| 6926 | }
|
| 6927 |
|
| 6928 | private int memoizedSerializedSize = -1;
|
| 6929 | public override int SerializedSize {
|
| 6930 | get {
|
| 6931 | int size = memoizedSerializedSize;
|
| 6932 | if (size != -1) return size;
|
| 6933 |
|
| 6934 | size = 0;
|
| 6935 | size += ExtensionsSerializedSize;
|
| 6936 | memoizedSerializedSize = size;
|
| 6937 | return size;
|
| 6938 | }
|
| 6939 | }
|
| 6940 |
|
| 6941 | #region Lite runtime methods
|
| 6942 | public override int GetHashCode() {
|
| 6943 | int hash = GetType().GetHashCode();
|
| 6944 | hash ^= base.GetHashCode();
|
| 6945 | return hash;
|
| 6946 | }
|
| 6947 |
|
| 6948 | public override bool Equals(object obj) {
|
| 6949 | TestAllExtensionsLite other = obj as TestAllExtensionsLite;
|
| 6950 | if (other == null) return false;
|
| 6951 | if (!base.Equals(other)) return false;
|
| 6952 | return true;
|
| 6953 | }
|
| 6954 |
|
| 6955 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 6956 | base.PrintTo(writer);
|
| 6957 | }
|
| 6958 | #endregion
|
| 6959 |
|
| 6960 | public static TestAllExtensionsLite ParseFrom(pb::ByteString data) {
|
| 6961 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 6962 | }
|
| 6963 | public static TestAllExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 6964 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 6965 | }
|
| 6966 | public static TestAllExtensionsLite ParseFrom(byte[] data) {
|
| 6967 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 6968 | }
|
| 6969 | public static TestAllExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 6970 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 6971 | }
|
| 6972 | public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input) {
|
| 6973 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 6974 | }
|
| 6975 | public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 6976 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 6977 | }
|
| 6978 | public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 6979 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 6980 | }
|
| 6981 | public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 6982 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 6983 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 6984 | public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6985 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 6986 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 6987 | public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6988 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 6989 | }
|
| 6990 | public static Builder CreateBuilder() { return new Builder(); }
|
| 6991 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 6992 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 6993 | public static Builder CreateBuilder(TestAllExtensionsLite prototype) {
|
| 6994 | return (Builder) new Builder().MergeFrom(prototype);
|
| 6995 | }
|
| 6996 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 6997 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 6998 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 6999 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7000 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestAllExtensionsLite, Builder> {
|
| 7001 | protected override Builder ThisBuilder {
|
| 7002 | get { return this; }
|
| 7003 | }
|
| 7004 | public Builder() {}
|
| 7005 |
|
| 7006 | TestAllExtensionsLite result = new TestAllExtensionsLite();
|
| 7007 |
|
| 7008 | protected override TestAllExtensionsLite MessageBeingBuilt {
|
| 7009 | get { return result; }
|
| 7010 | }
|
| 7011 |
|
| 7012 | public override Builder Clear() {
|
| 7013 | result = new TestAllExtensionsLite();
|
| 7014 | return this;
|
| 7015 | }
|
| 7016 |
|
| 7017 | public override Builder Clone() {
|
| 7018 | return new Builder().MergeFrom(result);
|
| 7019 | }
|
| 7020 |
|
| 7021 | public override TestAllExtensionsLite DefaultInstanceForType {
|
| 7022 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance; }
|
| 7023 | }
|
| 7024 |
|
| 7025 | public override TestAllExtensionsLite BuildPartial() {
|
| 7026 | if (result == null) {
|
| 7027 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 7028 | }
|
| 7029 | TestAllExtensionsLite returnMe = result;
|
| 7030 | result = null;
|
| 7031 | return returnMe;
|
| 7032 | }
|
| 7033 |
|
| 7034 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 7035 | if (other is TestAllExtensionsLite) {
|
| 7036 | return MergeFrom((TestAllExtensionsLite) other);
|
| 7037 | } else {
|
| 7038 | base.MergeFrom(other);
|
| 7039 | return this;
|
| 7040 | }
|
| 7041 | }
|
| 7042 |
|
| 7043 | public override Builder MergeFrom(TestAllExtensionsLite other) {
|
| 7044 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance) return this;
|
| 7045 | this.MergeExtensionFields(other);
|
| 7046 | return this;
|
| 7047 | }
|
| 7048 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7049 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7050 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 7051 | }
|
| 7052 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7053 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 7054 | uint tag;
|
| 7055 | string field_name;
|
| 7056 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7057 | switch (tag) {
|
| 7058 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 7059 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7060 | }
|
| 7061 | default: {
|
| 7062 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 7063 | return this;
|
| 7064 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 7065 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7066 | break;
|
| 7067 | }
|
| 7068 | }
|
| 7069 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 7070 |
|
| 7071 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7072 | }
|
| 7073 |
|
| 7074 | }
|
| 7075 | static TestAllExtensionsLite() {
|
| 7076 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 7077 | }
|
| 7078 | }
|
| 7079 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7080 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7081 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7082 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7083 | public sealed partial class OptionalGroup_extension_lite : pb::GeneratedMessageLite<OptionalGroup_extension_lite, OptionalGroup_extension_lite.Builder> {
|
| 7084 | private static readonly OptionalGroup_extension_lite defaultInstance = new Builder().BuildPartial();
|
| 7085 | public static OptionalGroup_extension_lite DefaultInstance {
|
| 7086 | get { return defaultInstance; }
|
| 7087 | }
|
| 7088 |
|
| 7089 | public override OptionalGroup_extension_lite DefaultInstanceForType {
|
| 7090 | get { return defaultInstance; }
|
| 7091 | }
|
| 7092 |
|
| 7093 | protected override OptionalGroup_extension_lite ThisMessage {
|
| 7094 | get { return this; }
|
| 7095 | }
|
| 7096 |
|
| 7097 | public const int AFieldNumber = 17;
|
| 7098 | private bool hasA;
|
| 7099 | private int a_ = 0;
|
| 7100 | public bool HasA {
|
| 7101 | get { return hasA; }
|
| 7102 | }
|
| 7103 | public int A {
|
| 7104 | get { return a_; }
|
| 7105 | }
|
| 7106 |
|
| 7107 | public override bool IsInitialized {
|
| 7108 | get {
|
| 7109 | return true;
|
| 7110 | }
|
| 7111 | }
|
| 7112 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 7113 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7114 | int size = SerializedSize;
|
| 7115 | if (HasA) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 7116 | output.WriteInt32(17, "a", A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7117 | }
|
| 7118 | }
|
| 7119 |
|
| 7120 | private int memoizedSerializedSize = -1;
|
| 7121 | public override int SerializedSize {
|
| 7122 | get {
|
| 7123 | int size = memoizedSerializedSize;
|
| 7124 | if (size != -1) return size;
|
| 7125 |
|
| 7126 | size = 0;
|
| 7127 | if (HasA) {
|
| 7128 | size += pb::CodedOutputStream.ComputeInt32Size(17, A);
|
| 7129 | }
|
| 7130 | memoizedSerializedSize = size;
|
| 7131 | return size;
|
| 7132 | }
|
| 7133 | }
|
| 7134 |
|
| 7135 | #region Lite runtime methods
|
| 7136 | public override int GetHashCode() {
|
| 7137 | int hash = GetType().GetHashCode();
|
| 7138 | if (hasA) hash ^= a_.GetHashCode();
|
| 7139 | return hash;
|
| 7140 | }
|
| 7141 |
|
| 7142 | public override bool Equals(object obj) {
|
| 7143 | OptionalGroup_extension_lite other = obj as OptionalGroup_extension_lite;
|
| 7144 | if (other == null) return false;
|
| 7145 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 7146 | return true;
|
| 7147 | }
|
| 7148 |
|
| 7149 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 7150 | PrintField("a", hasA, a_, writer);
|
| 7151 | }
|
| 7152 | #endregion
|
| 7153 |
|
| 7154 | public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data) {
|
| 7155 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7156 | }
|
| 7157 | public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 7158 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7159 | }
|
| 7160 | public static OptionalGroup_extension_lite ParseFrom(byte[] data) {
|
| 7161 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7162 | }
|
| 7163 | public static OptionalGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 7164 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7165 | }
|
| 7166 | public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
|
| 7167 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7168 | }
|
| 7169 | public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7170 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7171 | }
|
| 7172 | public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 7173 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 7174 | }
|
| 7175 | public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7176 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 7177 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7178 | public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7179 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7180 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7181 | public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7182 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7183 | }
|
| 7184 | public static Builder CreateBuilder() { return new Builder(); }
|
| 7185 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 7186 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 7187 | public static Builder CreateBuilder(OptionalGroup_extension_lite prototype) {
|
| 7188 | return (Builder) new Builder().MergeFrom(prototype);
|
| 7189 | }
|
| 7190 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7191 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7192 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7193 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7194 | public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup_extension_lite, Builder> {
|
| 7195 | protected override Builder ThisBuilder {
|
| 7196 | get { return this; }
|
| 7197 | }
|
| 7198 | public Builder() {}
|
| 7199 |
|
| 7200 | OptionalGroup_extension_lite result = new OptionalGroup_extension_lite();
|
| 7201 |
|
| 7202 | protected override OptionalGroup_extension_lite MessageBeingBuilt {
|
| 7203 | get { return result; }
|
| 7204 | }
|
| 7205 |
|
| 7206 | public override Builder Clear() {
|
| 7207 | result = new OptionalGroup_extension_lite();
|
| 7208 | return this;
|
| 7209 | }
|
| 7210 |
|
| 7211 | public override Builder Clone() {
|
| 7212 | return new Builder().MergeFrom(result);
|
| 7213 | }
|
| 7214 |
|
| 7215 | public override OptionalGroup_extension_lite DefaultInstanceForType {
|
| 7216 | get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance; }
|
| 7217 | }
|
| 7218 |
|
| 7219 | public override OptionalGroup_extension_lite BuildPartial() {
|
| 7220 | if (result == null) {
|
| 7221 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 7222 | }
|
| 7223 | OptionalGroup_extension_lite returnMe = result;
|
| 7224 | result = null;
|
| 7225 | return returnMe;
|
| 7226 | }
|
| 7227 |
|
| 7228 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 7229 | if (other is OptionalGroup_extension_lite) {
|
| 7230 | return MergeFrom((OptionalGroup_extension_lite) other);
|
| 7231 | } else {
|
| 7232 | base.MergeFrom(other);
|
| 7233 | return this;
|
| 7234 | }
|
| 7235 | }
|
| 7236 |
|
| 7237 | public override Builder MergeFrom(OptionalGroup_extension_lite other) {
|
| 7238 | if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance) return this;
|
| 7239 | if (other.HasA) {
|
| 7240 | A = other.A;
|
| 7241 | }
|
| 7242 | return this;
|
| 7243 | }
|
| 7244 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7245 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7246 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 7247 | }
|
| 7248 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7249 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 7250 | uint tag;
|
| 7251 | string field_name;
|
| 7252 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7253 | switch (tag) {
|
| 7254 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 7255 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7256 | }
|
| 7257 | default: {
|
| 7258 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 7259 | return this;
|
| 7260 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 7261 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7262 | break;
|
| 7263 | }
|
| 7264 | case 136: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 7265 | result.hasA |= input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7266 | break;
|
| 7267 | }
|
| 7268 | }
|
| 7269 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 7270 |
|
| 7271 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7272 | }
|
| 7273 |
|
| 7274 |
|
| 7275 | public bool HasA {
|
| 7276 | get { return result.HasA; }
|
| 7277 | }
|
| 7278 | public int A {
|
| 7279 | get { return result.A; }
|
| 7280 | set { SetA(value); }
|
| 7281 | }
|
| 7282 | public Builder SetA(int value) {
|
| 7283 | result.hasA = true;
|
| 7284 | result.a_ = value;
|
| 7285 | return this;
|
| 7286 | }
|
| 7287 | public Builder ClearA() {
|
| 7288 | result.hasA = false;
|
| 7289 | result.a_ = 0;
|
| 7290 | return this;
|
| 7291 | }
|
| 7292 | }
|
| 7293 | static OptionalGroup_extension_lite() {
|
| 7294 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 7295 | }
|
| 7296 | }
|
| 7297 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7298 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7299 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7300 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7301 | public sealed partial class RepeatedGroup_extension_lite : pb::GeneratedMessageLite<RepeatedGroup_extension_lite, RepeatedGroup_extension_lite.Builder> {
|
| 7302 | private static readonly RepeatedGroup_extension_lite defaultInstance = new Builder().BuildPartial();
|
| 7303 | public static RepeatedGroup_extension_lite DefaultInstance {
|
| 7304 | get { return defaultInstance; }
|
| 7305 | }
|
| 7306 |
|
| 7307 | public override RepeatedGroup_extension_lite DefaultInstanceForType {
|
| 7308 | get { return defaultInstance; }
|
| 7309 | }
|
| 7310 |
|
| 7311 | protected override RepeatedGroup_extension_lite ThisMessage {
|
| 7312 | get { return this; }
|
| 7313 | }
|
| 7314 |
|
| 7315 | public const int AFieldNumber = 47;
|
| 7316 | private bool hasA;
|
| 7317 | private int a_ = 0;
|
| 7318 | public bool HasA {
|
| 7319 | get { return hasA; }
|
| 7320 | }
|
| 7321 | public int A {
|
| 7322 | get { return a_; }
|
| 7323 | }
|
| 7324 |
|
| 7325 | public override bool IsInitialized {
|
| 7326 | get {
|
| 7327 | return true;
|
| 7328 | }
|
| 7329 | }
|
| 7330 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 7331 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7332 | int size = SerializedSize;
|
| 7333 | if (HasA) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 7334 | output.WriteInt32(47, "a", A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7335 | }
|
| 7336 | }
|
| 7337 |
|
| 7338 | private int memoizedSerializedSize = -1;
|
| 7339 | public override int SerializedSize {
|
| 7340 | get {
|
| 7341 | int size = memoizedSerializedSize;
|
| 7342 | if (size != -1) return size;
|
| 7343 |
|
| 7344 | size = 0;
|
| 7345 | if (HasA) {
|
| 7346 | size += pb::CodedOutputStream.ComputeInt32Size(47, A);
|
| 7347 | }
|
| 7348 | memoizedSerializedSize = size;
|
| 7349 | return size;
|
| 7350 | }
|
| 7351 | }
|
| 7352 |
|
| 7353 | #region Lite runtime methods
|
| 7354 | public override int GetHashCode() {
|
| 7355 | int hash = GetType().GetHashCode();
|
| 7356 | if (hasA) hash ^= a_.GetHashCode();
|
| 7357 | return hash;
|
| 7358 | }
|
| 7359 |
|
| 7360 | public override bool Equals(object obj) {
|
| 7361 | RepeatedGroup_extension_lite other = obj as RepeatedGroup_extension_lite;
|
| 7362 | if (other == null) return false;
|
| 7363 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 7364 | return true;
|
| 7365 | }
|
| 7366 |
|
| 7367 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 7368 | PrintField("a", hasA, a_, writer);
|
| 7369 | }
|
| 7370 | #endregion
|
| 7371 |
|
| 7372 | public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data) {
|
| 7373 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7374 | }
|
| 7375 | public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 7376 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7377 | }
|
| 7378 | public static RepeatedGroup_extension_lite ParseFrom(byte[] data) {
|
| 7379 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7380 | }
|
| 7381 | public static RepeatedGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 7382 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7383 | }
|
| 7384 | public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
|
| 7385 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7386 | }
|
| 7387 | public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7388 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7389 | }
|
| 7390 | public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 7391 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 7392 | }
|
| 7393 | public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7394 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 7395 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7396 | public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7397 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7398 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7399 | public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7400 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7401 | }
|
| 7402 | public static Builder CreateBuilder() { return new Builder(); }
|
| 7403 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 7404 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 7405 | public static Builder CreateBuilder(RepeatedGroup_extension_lite prototype) {
|
| 7406 | return (Builder) new Builder().MergeFrom(prototype);
|
| 7407 | }
|
| 7408 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7409 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7410 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7411 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7412 | public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup_extension_lite, Builder> {
|
| 7413 | protected override Builder ThisBuilder {
|
| 7414 | get { return this; }
|
| 7415 | }
|
| 7416 | public Builder() {}
|
| 7417 |
|
| 7418 | RepeatedGroup_extension_lite result = new RepeatedGroup_extension_lite();
|
| 7419 |
|
| 7420 | protected override RepeatedGroup_extension_lite MessageBeingBuilt {
|
| 7421 | get { return result; }
|
| 7422 | }
|
| 7423 |
|
| 7424 | public override Builder Clear() {
|
| 7425 | result = new RepeatedGroup_extension_lite();
|
| 7426 | return this;
|
| 7427 | }
|
| 7428 |
|
| 7429 | public override Builder Clone() {
|
| 7430 | return new Builder().MergeFrom(result);
|
| 7431 | }
|
| 7432 |
|
| 7433 | public override RepeatedGroup_extension_lite DefaultInstanceForType {
|
| 7434 | get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance; }
|
| 7435 | }
|
| 7436 |
|
| 7437 | public override RepeatedGroup_extension_lite BuildPartial() {
|
| 7438 | if (result == null) {
|
| 7439 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 7440 | }
|
| 7441 | RepeatedGroup_extension_lite returnMe = result;
|
| 7442 | result = null;
|
| 7443 | return returnMe;
|
| 7444 | }
|
| 7445 |
|
| 7446 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 7447 | if (other is RepeatedGroup_extension_lite) {
|
| 7448 | return MergeFrom((RepeatedGroup_extension_lite) other);
|
| 7449 | } else {
|
| 7450 | base.MergeFrom(other);
|
| 7451 | return this;
|
| 7452 | }
|
| 7453 | }
|
| 7454 |
|
| 7455 | public override Builder MergeFrom(RepeatedGroup_extension_lite other) {
|
| 7456 | if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance) return this;
|
| 7457 | if (other.HasA) {
|
| 7458 | A = other.A;
|
| 7459 | }
|
| 7460 | return this;
|
| 7461 | }
|
| 7462 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7463 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7464 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 7465 | }
|
| 7466 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7467 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 7468 | uint tag;
|
| 7469 | string field_name;
|
| 7470 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7471 | switch (tag) {
|
| 7472 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 7473 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7474 | }
|
| 7475 | default: {
|
| 7476 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 7477 | return this;
|
| 7478 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 7479 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7480 | break;
|
| 7481 | }
|
| 7482 | case 376: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 7483 | result.hasA |= input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7484 | break;
|
| 7485 | }
|
| 7486 | }
|
| 7487 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 7488 |
|
| 7489 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7490 | }
|
| 7491 |
|
| 7492 |
|
| 7493 | public bool HasA {
|
| 7494 | get { return result.HasA; }
|
| 7495 | }
|
| 7496 | public int A {
|
| 7497 | get { return result.A; }
|
| 7498 | set { SetA(value); }
|
| 7499 | }
|
| 7500 | public Builder SetA(int value) {
|
| 7501 | result.hasA = true;
|
| 7502 | result.a_ = value;
|
| 7503 | return this;
|
| 7504 | }
|
| 7505 | public Builder ClearA() {
|
| 7506 | result.hasA = false;
|
| 7507 | result.a_ = 0;
|
| 7508 | return this;
|
| 7509 | }
|
| 7510 | }
|
| 7511 | static RepeatedGroup_extension_lite() {
|
| 7512 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 7513 | }
|
| 7514 | }
|
| 7515 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7516 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7517 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7518 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7519 | public sealed partial class TestPackedExtensionsLite : pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder> {
|
| 7520 | private static readonly TestPackedExtensionsLite defaultInstance = new Builder().BuildPartial();
|
| 7521 | public static TestPackedExtensionsLite DefaultInstance {
|
| 7522 | get { return defaultInstance; }
|
| 7523 | }
|
| 7524 |
|
| 7525 | public override TestPackedExtensionsLite DefaultInstanceForType {
|
| 7526 | get { return defaultInstance; }
|
| 7527 | }
|
| 7528 |
|
| 7529 | protected override TestPackedExtensionsLite ThisMessage {
|
| 7530 | get { return this; }
|
| 7531 | }
|
| 7532 |
|
| 7533 | public override bool IsInitialized {
|
| 7534 | get {
|
| 7535 | if (!ExtensionsAreInitialized) return false;
|
| 7536 | return true;
|
| 7537 | }
|
| 7538 | }
|
| 7539 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 7540 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7541 | int size = SerializedSize;
|
| 7542 | pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
|
| 7543 | extensionWriter.WriteUntil(536870912, output);
|
| 7544 | }
|
| 7545 |
|
| 7546 | private int memoizedSerializedSize = -1;
|
| 7547 | public override int SerializedSize {
|
| 7548 | get {
|
| 7549 | int size = memoizedSerializedSize;
|
| 7550 | if (size != -1) return size;
|
| 7551 |
|
| 7552 | size = 0;
|
| 7553 | size += ExtensionsSerializedSize;
|
| 7554 | memoizedSerializedSize = size;
|
| 7555 | return size;
|
| 7556 | }
|
| 7557 | }
|
| 7558 |
|
| 7559 | #region Lite runtime methods
|
| 7560 | public override int GetHashCode() {
|
| 7561 | int hash = GetType().GetHashCode();
|
| 7562 | hash ^= base.GetHashCode();
|
| 7563 | return hash;
|
| 7564 | }
|
| 7565 |
|
| 7566 | public override bool Equals(object obj) {
|
| 7567 | TestPackedExtensionsLite other = obj as TestPackedExtensionsLite;
|
| 7568 | if (other == null) return false;
|
| 7569 | if (!base.Equals(other)) return false;
|
| 7570 | return true;
|
| 7571 | }
|
| 7572 |
|
| 7573 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 7574 | base.PrintTo(writer);
|
| 7575 | }
|
| 7576 | #endregion
|
| 7577 |
|
| 7578 | public static TestPackedExtensionsLite ParseFrom(pb::ByteString data) {
|
| 7579 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7580 | }
|
| 7581 | public static TestPackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 7582 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7583 | }
|
| 7584 | public static TestPackedExtensionsLite ParseFrom(byte[] data) {
|
| 7585 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7586 | }
|
| 7587 | public static TestPackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 7588 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7589 | }
|
| 7590 | public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
|
| 7591 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7592 | }
|
| 7593 | public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7594 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7595 | }
|
| 7596 | public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 7597 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 7598 | }
|
| 7599 | public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7600 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 7601 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7602 | public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7603 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7604 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7605 | public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7606 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7607 | }
|
| 7608 | public static Builder CreateBuilder() { return new Builder(); }
|
| 7609 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 7610 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 7611 | public static Builder CreateBuilder(TestPackedExtensionsLite prototype) {
|
| 7612 | return (Builder) new Builder().MergeFrom(prototype);
|
| 7613 | }
|
| 7614 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7615 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7616 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7617 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7618 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestPackedExtensionsLite, Builder> {
|
| 7619 | protected override Builder ThisBuilder {
|
| 7620 | get { return this; }
|
| 7621 | }
|
| 7622 | public Builder() {}
|
| 7623 |
|
| 7624 | TestPackedExtensionsLite result = new TestPackedExtensionsLite();
|
| 7625 |
|
| 7626 | protected override TestPackedExtensionsLite MessageBeingBuilt {
|
| 7627 | get { return result; }
|
| 7628 | }
|
| 7629 |
|
| 7630 | public override Builder Clear() {
|
| 7631 | result = new TestPackedExtensionsLite();
|
| 7632 | return this;
|
| 7633 | }
|
| 7634 |
|
| 7635 | public override Builder Clone() {
|
| 7636 | return new Builder().MergeFrom(result);
|
| 7637 | }
|
| 7638 |
|
| 7639 | public override TestPackedExtensionsLite DefaultInstanceForType {
|
| 7640 | get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance; }
|
| 7641 | }
|
| 7642 |
|
| 7643 | public override TestPackedExtensionsLite BuildPartial() {
|
| 7644 | if (result == null) {
|
| 7645 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 7646 | }
|
| 7647 | TestPackedExtensionsLite returnMe = result;
|
| 7648 | result = null;
|
| 7649 | return returnMe;
|
| 7650 | }
|
| 7651 |
|
| 7652 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 7653 | if (other is TestPackedExtensionsLite) {
|
| 7654 | return MergeFrom((TestPackedExtensionsLite) other);
|
| 7655 | } else {
|
| 7656 | base.MergeFrom(other);
|
| 7657 | return this;
|
| 7658 | }
|
| 7659 | }
|
| 7660 |
|
| 7661 | public override Builder MergeFrom(TestPackedExtensionsLite other) {
|
| 7662 | if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance) return this;
|
| 7663 | this.MergeExtensionFields(other);
|
| 7664 | return this;
|
| 7665 | }
|
| 7666 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7667 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7668 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 7669 | }
|
| 7670 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7671 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 7672 | uint tag;
|
| 7673 | string field_name;
|
| 7674 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7675 | switch (tag) {
|
| 7676 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 7677 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7678 | }
|
| 7679 | default: {
|
| 7680 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 7681 | return this;
|
| 7682 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 7683 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7684 | break;
|
| 7685 | }
|
| 7686 | }
|
| 7687 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 7688 |
|
| 7689 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7690 | }
|
| 7691 |
|
| 7692 | }
|
| 7693 | static TestPackedExtensionsLite() {
|
| 7694 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 7695 | }
|
| 7696 | }
|
| 7697 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7698 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7699 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7700 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7701 | public sealed partial class TestNestedExtensionLite : pb::GeneratedMessageLite<TestNestedExtensionLite, TestNestedExtensionLite.Builder> {
|
| 7702 | private static readonly TestNestedExtensionLite defaultInstance = new Builder().BuildPartial();
|
| 7703 | public static TestNestedExtensionLite DefaultInstance {
|
| 7704 | get { return defaultInstance; }
|
| 7705 | }
|
| 7706 |
|
| 7707 | public override TestNestedExtensionLite DefaultInstanceForType {
|
| 7708 | get { return defaultInstance; }
|
| 7709 | }
|
| 7710 |
|
| 7711 | protected override TestNestedExtensionLite ThisMessage {
|
| 7712 | get { return this; }
|
| 7713 | }
|
| 7714 |
|
| 7715 | public const int NestedExtensionFieldNumber = 12345;
|
| 7716 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> NestedExtension;
|
| 7717 | public override bool IsInitialized {
|
| 7718 | get {
|
| 7719 | return true;
|
| 7720 | }
|
| 7721 | }
|
| 7722 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 7723 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7724 | int size = SerializedSize;
|
| 7725 | }
|
| 7726 |
|
| 7727 | private int memoizedSerializedSize = -1;
|
| 7728 | public override int SerializedSize {
|
| 7729 | get {
|
| 7730 | int size = memoizedSerializedSize;
|
| 7731 | if (size != -1) return size;
|
| 7732 |
|
| 7733 | size = 0;
|
| 7734 | memoizedSerializedSize = size;
|
| 7735 | return size;
|
| 7736 | }
|
| 7737 | }
|
| 7738 |
|
| 7739 | #region Lite runtime methods
|
| 7740 | public override int GetHashCode() {
|
| 7741 | int hash = GetType().GetHashCode();
|
| 7742 | return hash;
|
| 7743 | }
|
| 7744 |
|
| 7745 | public override bool Equals(object obj) {
|
| 7746 | TestNestedExtensionLite other = obj as TestNestedExtensionLite;
|
| 7747 | if (other == null) return false;
|
| 7748 | return true;
|
| 7749 | }
|
| 7750 |
|
| 7751 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 7752 | }
|
| 7753 | #endregion
|
| 7754 |
|
| 7755 | public static TestNestedExtensionLite ParseFrom(pb::ByteString data) {
|
| 7756 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7757 | }
|
| 7758 | public static TestNestedExtensionLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 7759 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7760 | }
|
| 7761 | public static TestNestedExtensionLite ParseFrom(byte[] data) {
|
| 7762 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7763 | }
|
| 7764 | public static TestNestedExtensionLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 7765 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7766 | }
|
| 7767 | public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input) {
|
| 7768 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7769 | }
|
| 7770 | public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7771 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7772 | }
|
| 7773 | public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 7774 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 7775 | }
|
| 7776 | public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7777 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 7778 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7779 | public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7780 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7781 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7782 | public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7783 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7784 | }
|
| 7785 | public static Builder CreateBuilder() { return new Builder(); }
|
| 7786 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 7787 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 7788 | public static Builder CreateBuilder(TestNestedExtensionLite prototype) {
|
| 7789 | return (Builder) new Builder().MergeFrom(prototype);
|
| 7790 | }
|
| 7791 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7792 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7793 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7794 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7795 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestNestedExtensionLite, Builder> {
|
| 7796 | protected override Builder ThisBuilder {
|
| 7797 | get { return this; }
|
| 7798 | }
|
| 7799 | public Builder() {}
|
| 7800 |
|
| 7801 | TestNestedExtensionLite result = new TestNestedExtensionLite();
|
| 7802 |
|
| 7803 | protected override TestNestedExtensionLite MessageBeingBuilt {
|
| 7804 | get { return result; }
|
| 7805 | }
|
| 7806 |
|
| 7807 | public override Builder Clear() {
|
| 7808 | result = new TestNestedExtensionLite();
|
| 7809 | return this;
|
| 7810 | }
|
| 7811 |
|
| 7812 | public override Builder Clone() {
|
| 7813 | return new Builder().MergeFrom(result);
|
| 7814 | }
|
| 7815 |
|
| 7816 | public override TestNestedExtensionLite DefaultInstanceForType {
|
| 7817 | get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance; }
|
| 7818 | }
|
| 7819 |
|
| 7820 | public override TestNestedExtensionLite BuildPartial() {
|
| 7821 | if (result == null) {
|
| 7822 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 7823 | }
|
| 7824 | TestNestedExtensionLite returnMe = result;
|
| 7825 | result = null;
|
| 7826 | return returnMe;
|
| 7827 | }
|
| 7828 |
|
| 7829 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 7830 | if (other is TestNestedExtensionLite) {
|
| 7831 | return MergeFrom((TestNestedExtensionLite) other);
|
| 7832 | } else {
|
| 7833 | base.MergeFrom(other);
|
| 7834 | return this;
|
| 7835 | }
|
| 7836 | }
|
| 7837 |
|
| 7838 | public override Builder MergeFrom(TestNestedExtensionLite other) {
|
| 7839 | if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance) return this;
|
| 7840 | return this;
|
| 7841 | }
|
| 7842 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7843 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7844 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 7845 | }
|
| 7846 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7847 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 7848 | uint tag;
|
| 7849 | string field_name;
|
| 7850 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7851 | switch (tag) {
|
| 7852 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 7853 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7854 | }
|
| 7855 | default: {
|
| 7856 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 7857 | return this;
|
| 7858 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 7859 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7860 | break;
|
| 7861 | }
|
| 7862 | }
|
| 7863 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 7864 |
|
| 7865 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7866 | }
|
| 7867 |
|
| 7868 | }
|
| 7869 | static TestNestedExtensionLite() {
|
| 7870 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 7871 | }
|
| 7872 | }
|
| 7873 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7874 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7875 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7876 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7877 | public sealed partial class TestDeprecatedLite : pb::GeneratedMessageLite<TestDeprecatedLite, TestDeprecatedLite.Builder> {
|
| 7878 | private static readonly TestDeprecatedLite defaultInstance = new Builder().BuildPartial();
|
| 7879 | public static TestDeprecatedLite DefaultInstance {
|
| 7880 | get { return defaultInstance; }
|
| 7881 | }
|
| 7882 |
|
| 7883 | public override TestDeprecatedLite DefaultInstanceForType {
|
| 7884 | get { return defaultInstance; }
|
| 7885 | }
|
| 7886 |
|
| 7887 | protected override TestDeprecatedLite ThisMessage {
|
| 7888 | get { return this; }
|
| 7889 | }
|
| 7890 |
|
| 7891 | public const int DeprecatedFieldFieldNumber = 1;
|
| 7892 | private bool hasDeprecatedField;
|
| 7893 | private int deprecatedField_ = 0;
|
| 7894 | public bool HasDeprecatedField {
|
| 7895 | get { return hasDeprecatedField; }
|
| 7896 | }
|
| 7897 | public int DeprecatedField {
|
| 7898 | get { return deprecatedField_; }
|
| 7899 | }
|
| 7900 |
|
| 7901 | public override bool IsInitialized {
|
| 7902 | get {
|
| 7903 | return true;
|
| 7904 | }
|
| 7905 | }
|
| 7906 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 7907 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7908 | int size = SerializedSize;
|
| 7909 | if (HasDeprecatedField) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 7910 | output.WriteInt32(1, "deprecated_field", DeprecatedField);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7911 | }
|
| 7912 | }
|
| 7913 |
|
| 7914 | private int memoizedSerializedSize = -1;
|
| 7915 | public override int SerializedSize {
|
| 7916 | get {
|
| 7917 | int size = memoizedSerializedSize;
|
| 7918 | if (size != -1) return size;
|
| 7919 |
|
| 7920 | size = 0;
|
| 7921 | if (HasDeprecatedField) {
|
| 7922 | size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedField);
|
| 7923 | }
|
| 7924 | memoizedSerializedSize = size;
|
| 7925 | return size;
|
| 7926 | }
|
| 7927 | }
|
| 7928 |
|
| 7929 | #region Lite runtime methods
|
| 7930 | public override int GetHashCode() {
|
| 7931 | int hash = GetType().GetHashCode();
|
| 7932 | if (hasDeprecatedField) hash ^= deprecatedField_.GetHashCode();
|
| 7933 | return hash;
|
| 7934 | }
|
| 7935 |
|
| 7936 | public override bool Equals(object obj) {
|
| 7937 | TestDeprecatedLite other = obj as TestDeprecatedLite;
|
| 7938 | if (other == null) return false;
|
| 7939 | if (hasDeprecatedField != other.hasDeprecatedField || (hasDeprecatedField && !deprecatedField_.Equals(other.deprecatedField_))) return false;
|
| 7940 | return true;
|
| 7941 | }
|
| 7942 |
|
| 7943 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 7944 | PrintField("deprecated_field", hasDeprecatedField, deprecatedField_, writer);
|
| 7945 | }
|
| 7946 | #endregion
|
| 7947 |
|
| 7948 | public static TestDeprecatedLite ParseFrom(pb::ByteString data) {
|
| 7949 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7950 | }
|
| 7951 | public static TestDeprecatedLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 7952 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7953 | }
|
| 7954 | public static TestDeprecatedLite ParseFrom(byte[] data) {
|
| 7955 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7956 | }
|
| 7957 | public static TestDeprecatedLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 7958 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7959 | }
|
| 7960 | public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input) {
|
| 7961 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7962 | }
|
| 7963 | public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7964 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7965 | }
|
| 7966 | public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 7967 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 7968 | }
|
| 7969 | public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7970 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 7971 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7972 | public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7973 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7974 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 7975 | public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7976 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7977 | }
|
| 7978 | public static Builder CreateBuilder() { return new Builder(); }
|
| 7979 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 7980 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 7981 | public static Builder CreateBuilder(TestDeprecatedLite prototype) {
|
| 7982 | return (Builder) new Builder().MergeFrom(prototype);
|
| 7983 | }
|
| 7984 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7985 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7986 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7987 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 7988 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestDeprecatedLite, Builder> {
|
| 7989 | protected override Builder ThisBuilder {
|
| 7990 | get { return this; }
|
| 7991 | }
|
| 7992 | public Builder() {}
|
| 7993 |
|
| 7994 | TestDeprecatedLite result = new TestDeprecatedLite();
|
| 7995 |
|
| 7996 | protected override TestDeprecatedLite MessageBeingBuilt {
|
| 7997 | get { return result; }
|
| 7998 | }
|
| 7999 |
|
| 8000 | public override Builder Clear() {
|
| 8001 | result = new TestDeprecatedLite();
|
| 8002 | return this;
|
| 8003 | }
|
| 8004 |
|
| 8005 | public override Builder Clone() {
|
| 8006 | return new Builder().MergeFrom(result);
|
| 8007 | }
|
| 8008 |
|
| 8009 | public override TestDeprecatedLite DefaultInstanceForType {
|
| 8010 | get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance; }
|
| 8011 | }
|
| 8012 |
|
| 8013 | public override TestDeprecatedLite BuildPartial() {
|
| 8014 | if (result == null) {
|
| 8015 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 8016 | }
|
| 8017 | TestDeprecatedLite returnMe = result;
|
| 8018 | result = null;
|
| 8019 | return returnMe;
|
| 8020 | }
|
| 8021 |
|
| 8022 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 8023 | if (other is TestDeprecatedLite) {
|
| 8024 | return MergeFrom((TestDeprecatedLite) other);
|
| 8025 | } else {
|
| 8026 | base.MergeFrom(other);
|
| 8027 | return this;
|
| 8028 | }
|
| 8029 | }
|
| 8030 |
|
| 8031 | public override Builder MergeFrom(TestDeprecatedLite other) {
|
| 8032 | if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance) return this;
|
| 8033 | if (other.HasDeprecatedField) {
|
| 8034 | DeprecatedField = other.DeprecatedField;
|
| 8035 | }
|
| 8036 | return this;
|
| 8037 | }
|
| 8038 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 8039 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8040 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 8041 | }
|
| 8042 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame^] | 8043 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8044 | uint tag;
|
| 8045 | string field_name;
|
| 8046 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8047 | switch (tag) {
|
| 8048 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 8049 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8050 | }
|
| 8051 | default: {
|
| 8052 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 8053 | return this;
|
| 8054 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8055 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8056 | break;
|
| 8057 | }
|
| 8058 | case 8: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8059 | result.hasDeprecatedField |= input.ReadInt32(ref result.deprecatedField_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8060 | break;
|
| 8061 | }
|
| 8062 | }
|
| 8063 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8064 |
|
| 8065 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8066 | }
|
| 8067 |
|
| 8068 |
|
| 8069 | public bool HasDeprecatedField {
|
| 8070 | get { return result.HasDeprecatedField; }
|
| 8071 | }
|
| 8072 | public int DeprecatedField {
|
| 8073 | get { return result.DeprecatedField; }
|
| 8074 | set { SetDeprecatedField(value); }
|
| 8075 | }
|
| 8076 | public Builder SetDeprecatedField(int value) {
|
| 8077 | result.hasDeprecatedField = true;
|
| 8078 | result.deprecatedField_ = value;
|
| 8079 | return this;
|
| 8080 | }
|
| 8081 | public Builder ClearDeprecatedField() {
|
| 8082 | result.hasDeprecatedField = false;
|
| 8083 | result.deprecatedField_ = 0;
|
| 8084 | return this;
|
| 8085 | }
|
| 8086 | }
|
| 8087 | static TestDeprecatedLite() {
|
| 8088 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8089 | }
|
| 8090 | }
|
| 8091 |
|
| 8092 | #endregion
|
| 8093 |
|
| 8094 | }
|