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