| // Generated by ProtoGen, Version=0.9.0.0, Culture=neutral, PublicKeyToken=8fd7408b07f8d2cd. DO NOT EDIT! |
| |
| using pb = global::Google.ProtocolBuffers; |
| using pbc = global::Google.ProtocolBuffers.Collections; |
| using pbd = global::Google.ProtocolBuffers.Descriptors; |
| using scg = global::System.Collections.Generic; |
| namespace Google.ProtocolBuffers.TestProtos { |
| |
| public static partial class UnitTestLiteProtoFile { |
| |
| #region Extension registration |
| public static void RegisterAllExtensions(pb::ExtensionRegistry registry) { |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite); |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension); |
| } |
| #endregion |
| #region Extensions |
| public const int OptionalInt32ExtensionLiteFieldNumber = 1; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalInt32ExtensionLite; |
| public const int OptionalInt64ExtensionLiteFieldNumber = 2; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalInt64ExtensionLite; |
| public const int OptionalUint32ExtensionLiteFieldNumber = 3; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalUint32ExtensionLite; |
| public const int OptionalUint64ExtensionLiteFieldNumber = 4; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalUint64ExtensionLite; |
| public const int OptionalSint32ExtensionLiteFieldNumber = 5; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSint32ExtensionLite; |
| public const int OptionalSint64ExtensionLiteFieldNumber = 6; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSint64ExtensionLite; |
| public const int OptionalFixed32ExtensionLiteFieldNumber = 7; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalFixed32ExtensionLite; |
| public const int OptionalFixed64ExtensionLiteFieldNumber = 8; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalFixed64ExtensionLite; |
| public const int OptionalSfixed32ExtensionLiteFieldNumber = 9; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSfixed32ExtensionLite; |
| public const int OptionalSfixed64ExtensionLiteFieldNumber = 10; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSfixed64ExtensionLite; |
| public const int OptionalFloatExtensionLiteFieldNumber = 11; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> OptionalFloatExtensionLite; |
| public const int OptionalDoubleExtensionLiteFieldNumber = 12; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> OptionalDoubleExtensionLite; |
| public const int OptionalBoolExtensionLiteFieldNumber = 13; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> OptionalBoolExtensionLite; |
| public const int OptionalStringExtensionLiteFieldNumber = 14; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringExtensionLite; |
| public const int OptionalBytesExtensionLiteFieldNumber = 15; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> OptionalBytesExtensionLite; |
| public const int OptionalGroupExtensionLiteFieldNumber = 16; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite> OptionalGroupExtensionLite; |
| public const int OptionalNestedMessageExtensionLiteFieldNumber = 18; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> OptionalNestedMessageExtensionLite; |
| public const int OptionalForeignMessageExtensionLiteFieldNumber = 19; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> OptionalForeignMessageExtensionLite; |
| public const int OptionalImportMessageExtensionLiteFieldNumber = 20; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> OptionalImportMessageExtensionLite; |
| public const int OptionalNestedEnumExtensionLiteFieldNumber = 21; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> OptionalNestedEnumExtensionLite; |
| public const int OptionalForeignEnumExtensionLiteFieldNumber = 22; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> OptionalForeignEnumExtensionLite; |
| public const int OptionalImportEnumExtensionLiteFieldNumber = 23; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> OptionalImportEnumExtensionLite; |
| public const int OptionalStringPieceExtensionLiteFieldNumber = 24; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringPieceExtensionLite; |
| public const int OptionalCordExtensionLiteFieldNumber = 25; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalCordExtensionLite; |
| public const int RepeatedInt32ExtensionLiteFieldNumber = 31; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedInt32ExtensionLite; |
| public const int RepeatedInt64ExtensionLiteFieldNumber = 32; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedInt64ExtensionLite; |
| public const int RepeatedUint32ExtensionLiteFieldNumber = 33; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedUint32ExtensionLite; |
| public const int RepeatedUint64ExtensionLiteFieldNumber = 34; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedUint64ExtensionLite; |
| public const int RepeatedSint32ExtensionLiteFieldNumber = 35; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSint32ExtensionLite; |
| public const int RepeatedSint64ExtensionLiteFieldNumber = 36; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSint64ExtensionLite; |
| public const int RepeatedFixed32ExtensionLiteFieldNumber = 37; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedFixed32ExtensionLite; |
| public const int RepeatedFixed64ExtensionLiteFieldNumber = 38; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedFixed64ExtensionLite; |
| public const int RepeatedSfixed32ExtensionLiteFieldNumber = 39; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSfixed32ExtensionLite; |
| public const int RepeatedSfixed64ExtensionLiteFieldNumber = 40; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSfixed64ExtensionLite; |
| public const int RepeatedFloatExtensionLiteFieldNumber = 41; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> RepeatedFloatExtensionLite; |
| public const int RepeatedDoubleExtensionLiteFieldNumber = 42; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> RepeatedDoubleExtensionLite; |
| public const int RepeatedBoolExtensionLiteFieldNumber = 43; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> RepeatedBoolExtensionLite; |
| public const int RepeatedStringExtensionLiteFieldNumber = 44; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringExtensionLite; |
| public const int RepeatedBytesExtensionLiteFieldNumber = 45; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> RepeatedBytesExtensionLite; |
| public const int RepeatedGroupExtensionLiteFieldNumber = 46; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite> RepeatedGroupExtensionLite; |
| public const int RepeatedNestedMessageExtensionLiteFieldNumber = 48; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageExtensionLite; |
| public const int RepeatedForeignMessageExtensionLiteFieldNumber = 49; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageExtensionLite; |
| public const int RepeatedImportMessageExtensionLiteFieldNumber = 50; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageExtensionLite; |
| public const int RepeatedNestedEnumExtensionLiteFieldNumber = 51; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumExtensionLite; |
| public const int RepeatedForeignEnumExtensionLiteFieldNumber = 52; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumExtensionLite; |
| public const int RepeatedImportEnumExtensionLiteFieldNumber = 53; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumExtensionLite; |
| public const int RepeatedStringPieceExtensionLiteFieldNumber = 54; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringPieceExtensionLite; |
| public const int RepeatedCordExtensionLiteFieldNumber = 55; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedCordExtensionLite; |
| public const int DefaultInt32ExtensionLiteFieldNumber = 61; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultInt32ExtensionLite; |
| public const int DefaultInt64ExtensionLiteFieldNumber = 62; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultInt64ExtensionLite; |
| public const int DefaultUint32ExtensionLiteFieldNumber = 63; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultUint32ExtensionLite; |
| public const int DefaultUint64ExtensionLiteFieldNumber = 64; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultUint64ExtensionLite; |
| public const int DefaultSint32ExtensionLiteFieldNumber = 65; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSint32ExtensionLite; |
| public const int DefaultSint64ExtensionLiteFieldNumber = 66; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSint64ExtensionLite; |
| public const int DefaultFixed32ExtensionLiteFieldNumber = 67; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultFixed32ExtensionLite; |
| public const int DefaultFixed64ExtensionLiteFieldNumber = 68; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultFixed64ExtensionLite; |
| public const int DefaultSfixed32ExtensionLiteFieldNumber = 69; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSfixed32ExtensionLite; |
| public const int DefaultSfixed64ExtensionLiteFieldNumber = 70; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSfixed64ExtensionLite; |
| public const int DefaultFloatExtensionLiteFieldNumber = 71; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> DefaultFloatExtensionLite; |
| public const int DefaultDoubleExtensionLiteFieldNumber = 72; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> DefaultDoubleExtensionLite; |
| public const int DefaultBoolExtensionLiteFieldNumber = 73; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> DefaultBoolExtensionLite; |
| public const int DefaultStringExtensionLiteFieldNumber = 74; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringExtensionLite; |
| public const int DefaultBytesExtensionLiteFieldNumber = 75; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> DefaultBytesExtensionLite; |
| public const int DefaultNestedEnumExtensionLiteFieldNumber = 81; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> DefaultNestedEnumExtensionLite; |
| public const int DefaultForeignEnumExtensionLiteFieldNumber = 82; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> DefaultForeignEnumExtensionLite; |
| public const int DefaultImportEnumExtensionLiteFieldNumber = 83; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> DefaultImportEnumExtensionLite; |
| public const int DefaultStringPieceExtensionLiteFieldNumber = 84; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringPieceExtensionLite; |
| public const int DefaultCordExtensionLiteFieldNumber = 85; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultCordExtensionLite; |
| public const int PackedInt32ExtensionLiteFieldNumber = 90; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedInt32ExtensionLite; |
| public const int PackedInt64ExtensionLiteFieldNumber = 91; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedInt64ExtensionLite; |
| public const int PackedUint32ExtensionLiteFieldNumber = 92; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedUint32ExtensionLite; |
| public const int PackedUint64ExtensionLiteFieldNumber = 93; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedUint64ExtensionLite; |
| public const int PackedSint32ExtensionLiteFieldNumber = 94; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSint32ExtensionLite; |
| public const int PackedSint64ExtensionLiteFieldNumber = 95; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSint64ExtensionLite; |
| public const int PackedFixed32ExtensionLiteFieldNumber = 96; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedFixed32ExtensionLite; |
| public const int PackedFixed64ExtensionLiteFieldNumber = 97; |
| [global::System.CLSCompliant(false)] |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedFixed64ExtensionLite; |
| public const int PackedSfixed32ExtensionLiteFieldNumber = 98; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSfixed32ExtensionLite; |
| public const int PackedSfixed64ExtensionLiteFieldNumber = 99; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSfixed64ExtensionLite; |
| public const int PackedFloatExtensionLiteFieldNumber = 100; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float> PackedFloatExtensionLite; |
| public const int PackedDoubleExtensionLiteFieldNumber = 101; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double> PackedDoubleExtensionLite; |
| public const int PackedBoolExtensionLiteFieldNumber = 102; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool> PackedBoolExtensionLite; |
| public const int PackedEnumExtensionLiteFieldNumber = 103; |
| public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumExtensionLite; |
| #endregion |
| |
| #region Static variables |
| #endregion |
| #region Extensions |
| internal static readonly object Descriptor; |
| static UnitTestLiteProtoFile() { |
| Descriptor = null; |
| global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| "protobuf_unittest.TestNestedExtensionLite.nested_extension", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(int), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtensionFieldNumber, |
| pbd::FieldType.Int32); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| "protobuf_unittest.optional_int32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(int), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLiteFieldNumber, |
| pbd::FieldType.Int32); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| "protobuf_unittest.optional_int64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(long), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLiteFieldNumber, |
| pbd::FieldType.Int64); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| "protobuf_unittest.optional_uint32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(uint), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLiteFieldNumber, |
| pbd::FieldType.UInt32); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| "protobuf_unittest.optional_uint64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(ulong), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLiteFieldNumber, |
| pbd::FieldType.UInt64); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| "protobuf_unittest.optional_sint32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(int), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLiteFieldNumber, |
| pbd::FieldType.SInt32); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| "protobuf_unittest.optional_sint64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(long), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLiteFieldNumber, |
| pbd::FieldType.SInt64); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| "protobuf_unittest.optional_fixed32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(uint), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLiteFieldNumber, |
| pbd::FieldType.Fixed32); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| "protobuf_unittest.optional_fixed64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(ulong), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLiteFieldNumber, |
| pbd::FieldType.Fixed64); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| "protobuf_unittest.optional_sfixed32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(int), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLiteFieldNumber, |
| pbd::FieldType.SFixed32); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| "protobuf_unittest.optional_sfixed64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(long), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLiteFieldNumber, |
| pbd::FieldType.SFixed64); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>( |
| "protobuf_unittest.optional_float_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(float), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLiteFieldNumber, |
| pbd::FieldType.Float); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>( |
| "protobuf_unittest.optional_double_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(double), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLiteFieldNumber, |
| pbd::FieldType.Double); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>( |
| "protobuf_unittest.optional_bool_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(bool), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLiteFieldNumber, |
| pbd::FieldType.Bool); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| "protobuf_unittest.optional_string_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLiteFieldNumber, |
| pbd::FieldType.String); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>( |
| "protobuf_unittest.optional_bytes_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLiteFieldNumber, |
| pbd::FieldType.Bytes); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite>( |
| "protobuf_unittest.optionalgroup_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLiteFieldNumber, |
| pbd::FieldType.Group); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>( |
| "protobuf_unittest.optional_nested_message_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLiteFieldNumber, |
| pbd::FieldType.Message); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>( |
| "protobuf_unittest.optional_foreign_message_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLiteFieldNumber, |
| pbd::FieldType.Message); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>( |
| "protobuf_unittest.optional_import_message_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLiteFieldNumber, |
| pbd::FieldType.Message); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>( |
| "protobuf_unittest.optional_nested_enum_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum), |
| null, |
| new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(), |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLiteFieldNumber, |
| pbd::FieldType.Enum); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>( |
| "protobuf_unittest.optional_foreign_enum_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), |
| null, |
| new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(), |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLiteFieldNumber, |
| pbd::FieldType.Enum); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>( |
| "protobuf_unittest.optional_import_enum_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| default(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite), |
| null, |
| new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(), |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLiteFieldNumber, |
| pbd::FieldType.Enum); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| "protobuf_unittest.optional_string_piece_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLiteFieldNumber, |
| pbd::FieldType.String); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| "protobuf_unittest.optional_cord_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLiteFieldNumber, |
| pbd::FieldType.String); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| "protobuf_unittest.repeated_int32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLiteFieldNumber, |
| pbd::FieldType.Int32, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| "protobuf_unittest.repeated_int64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLiteFieldNumber, |
| pbd::FieldType.Int64, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| "protobuf_unittest.repeated_uint32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLiteFieldNumber, |
| pbd::FieldType.UInt32, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| "protobuf_unittest.repeated_uint64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLiteFieldNumber, |
| pbd::FieldType.UInt64, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| "protobuf_unittest.repeated_sint32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLiteFieldNumber, |
| pbd::FieldType.SInt32, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| "protobuf_unittest.repeated_sint64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLiteFieldNumber, |
| pbd::FieldType.SInt64, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| "protobuf_unittest.repeated_fixed32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLiteFieldNumber, |
| pbd::FieldType.Fixed32, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| "protobuf_unittest.repeated_fixed64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLiteFieldNumber, |
| pbd::FieldType.Fixed64, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| "protobuf_unittest.repeated_sfixed32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLiteFieldNumber, |
| pbd::FieldType.SFixed32, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| "protobuf_unittest.repeated_sfixed64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLiteFieldNumber, |
| pbd::FieldType.SFixed64, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>( |
| "protobuf_unittest.repeated_float_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLiteFieldNumber, |
| pbd::FieldType.Float, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>( |
| "protobuf_unittest.repeated_double_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLiteFieldNumber, |
| pbd::FieldType.Double, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>( |
| "protobuf_unittest.repeated_bool_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLiteFieldNumber, |
| pbd::FieldType.Bool, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| "protobuf_unittest.repeated_string_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLiteFieldNumber, |
| pbd::FieldType.String, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>( |
| "protobuf_unittest.repeated_bytes_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLiteFieldNumber, |
| pbd::FieldType.Bytes, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite>( |
| "protobuf_unittest.repeatedgroup_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLiteFieldNumber, |
| pbd::FieldType.Group, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>( |
| "protobuf_unittest.repeated_nested_message_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLiteFieldNumber, |
| pbd::FieldType.Message, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>( |
| "protobuf_unittest.repeated_foreign_message_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLiteFieldNumber, |
| pbd::FieldType.Message, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>( |
| "protobuf_unittest.repeated_import_message_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLiteFieldNumber, |
| pbd::FieldType.Message, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>( |
| "protobuf_unittest.repeated_nested_enum_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(), |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLiteFieldNumber, |
| pbd::FieldType.Enum, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>( |
| "protobuf_unittest.repeated_foreign_enum_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(), |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLiteFieldNumber, |
| pbd::FieldType.Enum, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>( |
| "protobuf_unittest.repeated_import_enum_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(), |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLiteFieldNumber, |
| pbd::FieldType.Enum, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| "protobuf_unittest.repeated_string_piece_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLiteFieldNumber, |
| pbd::FieldType.String, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| "protobuf_unittest.repeated_cord_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLiteFieldNumber, |
| pbd::FieldType.String, |
| false); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| "protobuf_unittest.default_int32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 41, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLiteFieldNumber, |
| pbd::FieldType.Int32); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| "protobuf_unittest.default_int64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 42L, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLiteFieldNumber, |
| pbd::FieldType.Int64); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| "protobuf_unittest.default_uint32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 43, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLiteFieldNumber, |
| pbd::FieldType.UInt32); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| "protobuf_unittest.default_uint64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 44UL, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLiteFieldNumber, |
| pbd::FieldType.UInt64); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| "protobuf_unittest.default_sint32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| -45, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLiteFieldNumber, |
| pbd::FieldType.SInt32); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| "protobuf_unittest.default_sint64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 46, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLiteFieldNumber, |
| pbd::FieldType.SInt64); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| "protobuf_unittest.default_fixed32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 47, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLiteFieldNumber, |
| pbd::FieldType.Fixed32); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| "protobuf_unittest.default_fixed64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 48, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLiteFieldNumber, |
| pbd::FieldType.Fixed64); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| "protobuf_unittest.default_sfixed32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 49, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLiteFieldNumber, |
| pbd::FieldType.SFixed32); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| "protobuf_unittest.default_sfixed64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| -50, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLiteFieldNumber, |
| pbd::FieldType.SFixed64); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>( |
| "protobuf_unittest.default_float_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 51.5F, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLiteFieldNumber, |
| pbd::FieldType.Float); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>( |
| "protobuf_unittest.default_double_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 52000D, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLiteFieldNumber, |
| pbd::FieldType.Double); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>( |
| "protobuf_unittest.default_bool_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| true, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLiteFieldNumber, |
| pbd::FieldType.Bool); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| "protobuf_unittest.default_string_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| "hello", |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLiteFieldNumber, |
| pbd::FieldType.String); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>( |
| "protobuf_unittest.default_bytes_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| ByteString.FromBase64("d29ybGQ="), |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLiteFieldNumber, |
| pbd::FieldType.Bytes); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>( |
| "protobuf_unittest.default_nested_enum_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR, |
| null, |
| new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(), |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLiteFieldNumber, |
| pbd::FieldType.Enum); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>( |
| "protobuf_unittest.default_foreign_enum_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR, |
| null, |
| new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(), |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLiteFieldNumber, |
| pbd::FieldType.Enum); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>( |
| "protobuf_unittest.default_import_enum_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR, |
| null, |
| new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(), |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLiteFieldNumber, |
| pbd::FieldType.Enum); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| "protobuf_unittest.default_string_piece_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| "abc", |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLiteFieldNumber, |
| pbd::FieldType.String); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite = |
| new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| "protobuf_unittest.default_cord_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| "123", |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLiteFieldNumber, |
| pbd::FieldType.String); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>( |
| "protobuf_unittest.packed_int32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLiteFieldNumber, |
| pbd::FieldType.Int32, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>( |
| "protobuf_unittest.packed_int64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLiteFieldNumber, |
| pbd::FieldType.Int64, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>( |
| "protobuf_unittest.packed_uint32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLiteFieldNumber, |
| pbd::FieldType.UInt32, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>( |
| "protobuf_unittest.packed_uint64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLiteFieldNumber, |
| pbd::FieldType.UInt64, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>( |
| "protobuf_unittest.packed_sint32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLiteFieldNumber, |
| pbd::FieldType.SInt32, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>( |
| "protobuf_unittest.packed_sint64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLiteFieldNumber, |
| pbd::FieldType.SInt64, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>( |
| "protobuf_unittest.packed_fixed32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLiteFieldNumber, |
| pbd::FieldType.Fixed32, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>( |
| "protobuf_unittest.packed_fixed64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLiteFieldNumber, |
| pbd::FieldType.Fixed64, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>( |
| "protobuf_unittest.packed_sfixed32_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLiteFieldNumber, |
| pbd::FieldType.SFixed32, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>( |
| "protobuf_unittest.packed_sfixed64_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLiteFieldNumber, |
| pbd::FieldType.SFixed64, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float>( |
| "protobuf_unittest.packed_float_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLiteFieldNumber, |
| pbd::FieldType.Float, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double>( |
| "protobuf_unittest.packed_double_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLiteFieldNumber, |
| pbd::FieldType.Double, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool>( |
| "protobuf_unittest.packed_bool_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| null, |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLiteFieldNumber, |
| pbd::FieldType.Bool, |
| true); |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite = |
| new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>( |
| "protobuf_unittest.packed_enum_extension_lite", |
| global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| null, |
| new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(), |
| global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLiteFieldNumber, |
| pbd::FieldType.Enum, |
| true); |
| } |
| #endregion |
| |
| } |
| #region Enums |
| public enum ForeignEnumLite { |
| FOREIGN_LITE_FOO = 4, |
| FOREIGN_LITE_BAR = 5, |
| FOREIGN_LITE_BAZ = 6, |
| } |
| |
| #endregion |
| |
| #region Messages |
| public sealed partial class TestAllTypesLite : pb::GeneratedMessageLite<TestAllTypesLite, TestAllTypesLite.Builder> { |
| private static readonly TestAllTypesLite defaultInstance = new Builder().BuildPartial(); |
| public static TestAllTypesLite DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override TestAllTypesLite DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override TestAllTypesLite ThisMessage { |
| get { return this; } |
| } |
| |
| #region Nested types |
| public static class Types { |
| public enum NestedEnum { |
| FOO = 1, |
| BAR = 2, |
| BAZ = 3, |
| } |
| |
| public sealed partial class NestedMessage : pb::GeneratedMessageLite<NestedMessage, NestedMessage.Builder> { |
| private static readonly NestedMessage defaultInstance = new Builder().BuildPartial(); |
| public static NestedMessage DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override NestedMessage DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override NestedMessage ThisMessage { |
| get { return this; } |
| } |
| |
| public const int BbFieldNumber = 1; |
| private bool hasBb; |
| private int bb_ = 0; |
| public bool HasBb { |
| get { return hasBb; } |
| } |
| public int Bb { |
| get { return bb_; } |
| } |
| |
| public override bool IsInitialized { |
| get { |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| if (HasBb) { |
| output.WriteInt32(1, Bb); |
| } |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (HasBb) { |
| size += pb::CodedOutputStream.ComputeInt32Size(1, Bb); |
| } |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| if (hasBb) hash ^= bb_.GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| NestedMessage other = obj as NestedMessage; |
| if (other == null) return false; |
| if (hasBb != other.hasBb || (hasBb && !bb_.Equals(other.bb_))) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| PrintField("bb", hasBb, bb_, writer); |
| } |
| #endregion |
| |
| public static NestedMessage ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static NestedMessage ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static NestedMessage ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static NestedMessage ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static NestedMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(NestedMessage prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::GeneratedBuilderLite<NestedMessage, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| NestedMessage result = new NestedMessage(); |
| |
| protected override NestedMessage MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new NestedMessage(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override NestedMessage DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; } |
| } |
| |
| public override NestedMessage BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| NestedMessage returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is NestedMessage) { |
| return MergeFrom((NestedMessage) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(NestedMessage other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) return this; |
| if (other.HasBb) { |
| Bb = other.Bb; |
| } |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| case 8: { |
| Bb = input.ReadInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| |
| public bool HasBb { |
| get { return result.HasBb; } |
| } |
| public int Bb { |
| get { return result.Bb; } |
| set { SetBb(value); } |
| } |
| public Builder SetBb(int value) { |
| result.hasBb = true; |
| result.bb_ = value; |
| return this; |
| } |
| public Builder ClearBb() { |
| result.hasBb = false; |
| result.bb_ = 0; |
| return this; |
| } |
| } |
| static NestedMessage() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| public sealed partial class OptionalGroup : pb::GeneratedMessageLite<OptionalGroup, OptionalGroup.Builder> { |
| private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial(); |
| public static OptionalGroup DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override OptionalGroup DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override OptionalGroup ThisMessage { |
| get { return this; } |
| } |
| |
| public const int AFieldNumber = 17; |
| private bool hasA; |
| private int a_ = 0; |
| public bool HasA { |
| get { return hasA; } |
| } |
| public int A { |
| get { return a_; } |
| } |
| |
| public override bool IsInitialized { |
| get { |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| if (HasA) { |
| output.WriteInt32(17, A); |
| } |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (HasA) { |
| size += pb::CodedOutputStream.ComputeInt32Size(17, A); |
| } |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| if (hasA) hash ^= a_.GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| OptionalGroup other = obj as OptionalGroup; |
| if (other == null) return false; |
| if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| PrintField("a", hasA, a_, writer); |
| } |
| #endregion |
| |
| public static OptionalGroup ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static OptionalGroup ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static OptionalGroup ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static OptionalGroup ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static OptionalGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(OptionalGroup prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| OptionalGroup result = new OptionalGroup(); |
| |
| protected override OptionalGroup MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new OptionalGroup(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override OptionalGroup DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; } |
| } |
| |
| public override OptionalGroup BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| OptionalGroup returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is OptionalGroup) { |
| return MergeFrom((OptionalGroup) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(OptionalGroup other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) return this; |
| if (other.HasA) { |
| A = other.A; |
| } |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| case 136: { |
| A = input.ReadInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| |
| public bool HasA { |
| get { return result.HasA; } |
| } |
| public int A { |
| get { return result.A; } |
| set { SetA(value); } |
| } |
| public Builder SetA(int value) { |
| result.hasA = true; |
| result.a_ = value; |
| return this; |
| } |
| public Builder ClearA() { |
| result.hasA = false; |
| result.a_ = 0; |
| return this; |
| } |
| } |
| static OptionalGroup() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| public sealed partial class RepeatedGroup : pb::GeneratedMessageLite<RepeatedGroup, RepeatedGroup.Builder> { |
| private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial(); |
| public static RepeatedGroup DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override RepeatedGroup DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override RepeatedGroup ThisMessage { |
| get { return this; } |
| } |
| |
| public const int AFieldNumber = 47; |
| private bool hasA; |
| private int a_ = 0; |
| public bool HasA { |
| get { return hasA; } |
| } |
| public int A { |
| get { return a_; } |
| } |
| |
| public override bool IsInitialized { |
| get { |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| if (HasA) { |
| output.WriteInt32(47, A); |
| } |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (HasA) { |
| size += pb::CodedOutputStream.ComputeInt32Size(47, A); |
| } |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| if (hasA) hash ^= a_.GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| RepeatedGroup other = obj as RepeatedGroup; |
| if (other == null) return false; |
| if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| PrintField("a", hasA, a_, writer); |
| } |
| #endregion |
| |
| public static RepeatedGroup ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static RepeatedGroup ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static RepeatedGroup ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static RepeatedGroup ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static RepeatedGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(RepeatedGroup prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| RepeatedGroup result = new RepeatedGroup(); |
| |
| protected override RepeatedGroup MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new RepeatedGroup(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override RepeatedGroup DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance; } |
| } |
| |
| public override RepeatedGroup BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| RepeatedGroup returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is RepeatedGroup) { |
| return MergeFrom((RepeatedGroup) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(RepeatedGroup other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance) return this; |
| if (other.HasA) { |
| A = other.A; |
| } |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| case 376: { |
| A = input.ReadInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| |
| public bool HasA { |
| get { return result.HasA; } |
| } |
| public int A { |
| get { return result.A; } |
| set { SetA(value); } |
| } |
| public Builder SetA(int value) { |
| result.hasA = true; |
| result.a_ = value; |
| return this; |
| } |
| public Builder ClearA() { |
| result.hasA = false; |
| result.a_ = 0; |
| return this; |
| } |
| } |
| static RepeatedGroup() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| } |
| #endregion |
| |
| public const int OptionalInt32FieldNumber = 1; |
| private bool hasOptionalInt32; |
| private int optionalInt32_ = 0; |
| public bool HasOptionalInt32 { |
| get { return hasOptionalInt32; } |
| } |
| public int OptionalInt32 { |
| get { return optionalInt32_; } |
| } |
| |
| public const int OptionalInt64FieldNumber = 2; |
| private bool hasOptionalInt64; |
| private long optionalInt64_ = 0L; |
| public bool HasOptionalInt64 { |
| get { return hasOptionalInt64; } |
| } |
| public long OptionalInt64 { |
| get { return optionalInt64_; } |
| } |
| |
| public const int OptionalUint32FieldNumber = 3; |
| private bool hasOptionalUint32; |
| private uint optionalUint32_ = 0; |
| public bool HasOptionalUint32 { |
| get { return hasOptionalUint32; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint OptionalUint32 { |
| get { return optionalUint32_; } |
| } |
| |
| public const int OptionalUint64FieldNumber = 4; |
| private bool hasOptionalUint64; |
| private ulong optionalUint64_ = 0UL; |
| public bool HasOptionalUint64 { |
| get { return hasOptionalUint64; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong OptionalUint64 { |
| get { return optionalUint64_; } |
| } |
| |
| public const int OptionalSint32FieldNumber = 5; |
| private bool hasOptionalSint32; |
| private int optionalSint32_ = 0; |
| public bool HasOptionalSint32 { |
| get { return hasOptionalSint32; } |
| } |
| public int OptionalSint32 { |
| get { return optionalSint32_; } |
| } |
| |
| public const int OptionalSint64FieldNumber = 6; |
| private bool hasOptionalSint64; |
| private long optionalSint64_ = 0; |
| public bool HasOptionalSint64 { |
| get { return hasOptionalSint64; } |
| } |
| public long OptionalSint64 { |
| get { return optionalSint64_; } |
| } |
| |
| public const int OptionalFixed32FieldNumber = 7; |
| private bool hasOptionalFixed32; |
| private uint optionalFixed32_ = 0; |
| public bool HasOptionalFixed32 { |
| get { return hasOptionalFixed32; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint OptionalFixed32 { |
| get { return optionalFixed32_; } |
| } |
| |
| public const int OptionalFixed64FieldNumber = 8; |
| private bool hasOptionalFixed64; |
| private ulong optionalFixed64_ = 0; |
| public bool HasOptionalFixed64 { |
| get { return hasOptionalFixed64; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong OptionalFixed64 { |
| get { return optionalFixed64_; } |
| } |
| |
| public const int OptionalSfixed32FieldNumber = 9; |
| private bool hasOptionalSfixed32; |
| private int optionalSfixed32_ = 0; |
| public bool HasOptionalSfixed32 { |
| get { return hasOptionalSfixed32; } |
| } |
| public int OptionalSfixed32 { |
| get { return optionalSfixed32_; } |
| } |
| |
| public const int OptionalSfixed64FieldNumber = 10; |
| private bool hasOptionalSfixed64; |
| private long optionalSfixed64_ = 0; |
| public bool HasOptionalSfixed64 { |
| get { return hasOptionalSfixed64; } |
| } |
| public long OptionalSfixed64 { |
| get { return optionalSfixed64_; } |
| } |
| |
| public const int OptionalFloatFieldNumber = 11; |
| private bool hasOptionalFloat; |
| private float optionalFloat_ = 0F; |
| public bool HasOptionalFloat { |
| get { return hasOptionalFloat; } |
| } |
| public float OptionalFloat { |
| get { return optionalFloat_; } |
| } |
| |
| public const int OptionalDoubleFieldNumber = 12; |
| private bool hasOptionalDouble; |
| private double optionalDouble_ = 0D; |
| public bool HasOptionalDouble { |
| get { return hasOptionalDouble; } |
| } |
| public double OptionalDouble { |
| get { return optionalDouble_; } |
| } |
| |
| public const int OptionalBoolFieldNumber = 13; |
| private bool hasOptionalBool; |
| private bool optionalBool_ = false; |
| public bool HasOptionalBool { |
| get { return hasOptionalBool; } |
| } |
| public bool OptionalBool { |
| get { return optionalBool_; } |
| } |
| |
| public const int OptionalStringFieldNumber = 14; |
| private bool hasOptionalString; |
| private string optionalString_ = ""; |
| public bool HasOptionalString { |
| get { return hasOptionalString; } |
| } |
| public string OptionalString { |
| get { return optionalString_; } |
| } |
| |
| public const int OptionalBytesFieldNumber = 15; |
| private bool hasOptionalBytes; |
| private pb::ByteString optionalBytes_ = pb::ByteString.Empty; |
| public bool HasOptionalBytes { |
| get { return hasOptionalBytes; } |
| } |
| public pb::ByteString OptionalBytes { |
| get { return optionalBytes_; } |
| } |
| |
| public const int OptionalGroupFieldNumber = 16; |
| private bool hasOptionalGroup; |
| private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; |
| public bool HasOptionalGroup { |
| get { return hasOptionalGroup; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup { |
| get { return optionalGroup_; } |
| } |
| |
| public const int OptionalNestedMessageFieldNumber = 18; |
| private bool hasOptionalNestedMessage; |
| private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; |
| public bool HasOptionalNestedMessage { |
| get { return hasOptionalNestedMessage; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage { |
| get { return optionalNestedMessage_; } |
| } |
| |
| public const int OptionalForeignMessageFieldNumber = 19; |
| private bool hasOptionalForeignMessage; |
| private global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; |
| public bool HasOptionalForeignMessage { |
| get { return hasOptionalForeignMessage; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage { |
| get { return optionalForeignMessage_; } |
| } |
| |
| public const int OptionalImportMessageFieldNumber = 20; |
| private bool hasOptionalImportMessage; |
| private global::Google.ProtocolBuffers.TestProtos.ImportMessageLite optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance; |
| public bool HasOptionalImportMessage { |
| get { return hasOptionalImportMessage; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage { |
| get { return optionalImportMessage_; } |
| } |
| |
| public const int OptionalNestedEnumFieldNumber = 21; |
| private bool hasOptionalNestedEnum; |
| private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO; |
| public bool HasOptionalNestedEnum { |
| get { return hasOptionalNestedEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum { |
| get { return optionalNestedEnum_; } |
| } |
| |
| public const int OptionalForeignEnumFieldNumber = 22; |
| private bool hasOptionalForeignEnum; |
| private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO; |
| public bool HasOptionalForeignEnum { |
| get { return hasOptionalForeignEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum { |
| get { return optionalForeignEnum_; } |
| } |
| |
| public const int OptionalImportEnumFieldNumber = 23; |
| private bool hasOptionalImportEnum; |
| private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO; |
| public bool HasOptionalImportEnum { |
| get { return hasOptionalImportEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum { |
| get { return optionalImportEnum_; } |
| } |
| |
| public const int OptionalStringPieceFieldNumber = 24; |
| private bool hasOptionalStringPiece; |
| private string optionalStringPiece_ = ""; |
| public bool HasOptionalStringPiece { |
| get { return hasOptionalStringPiece; } |
| } |
| public string OptionalStringPiece { |
| get { return optionalStringPiece_; } |
| } |
| |
| public const int OptionalCordFieldNumber = 25; |
| private bool hasOptionalCord; |
| private string optionalCord_ = ""; |
| public bool HasOptionalCord { |
| get { return hasOptionalCord; } |
| } |
| public string OptionalCord { |
| get { return optionalCord_; } |
| } |
| |
| public const int RepeatedInt32FieldNumber = 31; |
| private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>(); |
| public scg::IList<int> RepeatedInt32List { |
| get { return pbc::Lists.AsReadOnly(repeatedInt32_); } |
| } |
| public int RepeatedInt32Count { |
| get { return repeatedInt32_.Count; } |
| } |
| public int GetRepeatedInt32(int index) { |
| return repeatedInt32_[index]; |
| } |
| |
| public const int RepeatedInt64FieldNumber = 32; |
| private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>(); |
| public scg::IList<long> RepeatedInt64List { |
| get { return pbc::Lists.AsReadOnly(repeatedInt64_); } |
| } |
| public int RepeatedInt64Count { |
| get { return repeatedInt64_.Count; } |
| } |
| public long GetRepeatedInt64(int index) { |
| return repeatedInt64_[index]; |
| } |
| |
| public const int RepeatedUint32FieldNumber = 33; |
| private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>(); |
| [global::System.CLSCompliant(false)] |
| public scg::IList<uint> RepeatedUint32List { |
| get { return pbc::Lists.AsReadOnly(repeatedUint32_); } |
| } |
| public int RepeatedUint32Count { |
| get { return repeatedUint32_.Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint GetRepeatedUint32(int index) { |
| return repeatedUint32_[index]; |
| } |
| |
| public const int RepeatedUint64FieldNumber = 34; |
| private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>(); |
| [global::System.CLSCompliant(false)] |
| public scg::IList<ulong> RepeatedUint64List { |
| get { return pbc::Lists.AsReadOnly(repeatedUint64_); } |
| } |
| public int RepeatedUint64Count { |
| get { return repeatedUint64_.Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong GetRepeatedUint64(int index) { |
| return repeatedUint64_[index]; |
| } |
| |
| public const int RepeatedSint32FieldNumber = 35; |
| private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>(); |
| public scg::IList<int> RepeatedSint32List { |
| get { return pbc::Lists.AsReadOnly(repeatedSint32_); } |
| } |
| public int RepeatedSint32Count { |
| get { return repeatedSint32_.Count; } |
| } |
| public int GetRepeatedSint32(int index) { |
| return repeatedSint32_[index]; |
| } |
| |
| public const int RepeatedSint64FieldNumber = 36; |
| private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>(); |
| public scg::IList<long> RepeatedSint64List { |
| get { return pbc::Lists.AsReadOnly(repeatedSint64_); } |
| } |
| public int RepeatedSint64Count { |
| get { return repeatedSint64_.Count; } |
| } |
| public long GetRepeatedSint64(int index) { |
| return repeatedSint64_[index]; |
| } |
| |
| public const int RepeatedFixed32FieldNumber = 37; |
| private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>(); |
| [global::System.CLSCompliant(false)] |
| public scg::IList<uint> RepeatedFixed32List { |
| get { return pbc::Lists.AsReadOnly(repeatedFixed32_); } |
| } |
| public int RepeatedFixed32Count { |
| get { return repeatedFixed32_.Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint GetRepeatedFixed32(int index) { |
| return repeatedFixed32_[index]; |
| } |
| |
| public const int RepeatedFixed64FieldNumber = 38; |
| private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>(); |
| [global::System.CLSCompliant(false)] |
| public scg::IList<ulong> RepeatedFixed64List { |
| get { return pbc::Lists.AsReadOnly(repeatedFixed64_); } |
| } |
| public int RepeatedFixed64Count { |
| get { return repeatedFixed64_.Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong GetRepeatedFixed64(int index) { |
| return repeatedFixed64_[index]; |
| } |
| |
| public const int RepeatedSfixed32FieldNumber = 39; |
| private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>(); |
| public scg::IList<int> RepeatedSfixed32List { |
| get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); } |
| } |
| public int RepeatedSfixed32Count { |
| get { return repeatedSfixed32_.Count; } |
| } |
| public int GetRepeatedSfixed32(int index) { |
| return repeatedSfixed32_[index]; |
| } |
| |
| public const int RepeatedSfixed64FieldNumber = 40; |
| private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>(); |
| public scg::IList<long> RepeatedSfixed64List { |
| get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); } |
| } |
| public int RepeatedSfixed64Count { |
| get { return repeatedSfixed64_.Count; } |
| } |
| public long GetRepeatedSfixed64(int index) { |
| return repeatedSfixed64_[index]; |
| } |
| |
| public const int RepeatedFloatFieldNumber = 41; |
| private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>(); |
| public scg::IList<float> RepeatedFloatList { |
| get { return pbc::Lists.AsReadOnly(repeatedFloat_); } |
| } |
| public int RepeatedFloatCount { |
| get { return repeatedFloat_.Count; } |
| } |
| public float GetRepeatedFloat(int index) { |
| return repeatedFloat_[index]; |
| } |
| |
| public const int RepeatedDoubleFieldNumber = 42; |
| private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>(); |
| public scg::IList<double> RepeatedDoubleList { |
| get { return pbc::Lists.AsReadOnly(repeatedDouble_); } |
| } |
| public int RepeatedDoubleCount { |
| get { return repeatedDouble_.Count; } |
| } |
| public double GetRepeatedDouble(int index) { |
| return repeatedDouble_[index]; |
| } |
| |
| public const int RepeatedBoolFieldNumber = 43; |
| private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>(); |
| public scg::IList<bool> RepeatedBoolList { |
| get { return pbc::Lists.AsReadOnly(repeatedBool_); } |
| } |
| public int RepeatedBoolCount { |
| get { return repeatedBool_.Count; } |
| } |
| public bool GetRepeatedBool(int index) { |
| return repeatedBool_[index]; |
| } |
| |
| public const int RepeatedStringFieldNumber = 44; |
| private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>(); |
| public scg::IList<string> RepeatedStringList { |
| get { return pbc::Lists.AsReadOnly(repeatedString_); } |
| } |
| public int RepeatedStringCount { |
| get { return repeatedString_.Count; } |
| } |
| public string GetRepeatedString(int index) { |
| return repeatedString_[index]; |
| } |
| |
| public const int RepeatedBytesFieldNumber = 45; |
| private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>(); |
| public scg::IList<pb::ByteString> RepeatedBytesList { |
| get { return pbc::Lists.AsReadOnly(repeatedBytes_); } |
| } |
| public int RepeatedBytesCount { |
| get { return repeatedBytes_.Count; } |
| } |
| public pb::ByteString GetRepeatedBytes(int index) { |
| return repeatedBytes_[index]; |
| } |
| |
| public const int RepeatedGroupFieldNumber = 46; |
| private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup>(); |
| public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList { |
| get { return repeatedGroup_; } |
| } |
| public int RepeatedGroupCount { |
| get { return repeatedGroup_.Count; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) { |
| return repeatedGroup_[index]; |
| } |
| |
| public const int RepeatedNestedMessageFieldNumber = 48; |
| private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(); |
| public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList { |
| get { return repeatedNestedMessage_; } |
| } |
| public int RepeatedNestedMessageCount { |
| get { return repeatedNestedMessage_.Count; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) { |
| return repeatedNestedMessage_[index]; |
| } |
| |
| public const int RepeatedForeignMessageFieldNumber = 49; |
| private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(); |
| public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList { |
| get { return repeatedForeignMessage_; } |
| } |
| public int RepeatedForeignMessageCount { |
| get { return repeatedForeignMessage_.Count; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) { |
| return repeatedForeignMessage_[index]; |
| } |
| |
| public const int RepeatedImportMessageFieldNumber = 50; |
| private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(); |
| public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList { |
| get { return repeatedImportMessage_; } |
| } |
| public int RepeatedImportMessageCount { |
| get { return repeatedImportMessage_.Count; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) { |
| return repeatedImportMessage_[index]; |
| } |
| |
| public const int RepeatedNestedEnumFieldNumber = 51; |
| private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(); |
| public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList { |
| get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); } |
| } |
| public int RepeatedNestedEnumCount { |
| get { return repeatedNestedEnum_.Count; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) { |
| return repeatedNestedEnum_[index]; |
| } |
| |
| public const int RepeatedForeignEnumFieldNumber = 52; |
| private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(); |
| public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList { |
| get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); } |
| } |
| public int RepeatedForeignEnumCount { |
| get { return repeatedForeignEnum_.Count; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) { |
| return repeatedForeignEnum_[index]; |
| } |
| |
| public const int RepeatedImportEnumFieldNumber = 53; |
| private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(); |
| public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList { |
| get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); } |
| } |
| public int RepeatedImportEnumCount { |
| get { return repeatedImportEnum_.Count; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) { |
| return repeatedImportEnum_[index]; |
| } |
| |
| public const int RepeatedStringPieceFieldNumber = 54; |
| private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>(); |
| public scg::IList<string> RepeatedStringPieceList { |
| get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); } |
| } |
| public int RepeatedStringPieceCount { |
| get { return repeatedStringPiece_.Count; } |
| } |
| public string GetRepeatedStringPiece(int index) { |
| return repeatedStringPiece_[index]; |
| } |
| |
| public const int RepeatedCordFieldNumber = 55; |
| private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>(); |
| public scg::IList<string> RepeatedCordList { |
| get { return pbc::Lists.AsReadOnly(repeatedCord_); } |
| } |
| public int RepeatedCordCount { |
| get { return repeatedCord_.Count; } |
| } |
| public string GetRepeatedCord(int index) { |
| return repeatedCord_[index]; |
| } |
| |
| public const int DefaultInt32FieldNumber = 61; |
| private bool hasDefaultInt32; |
| private int defaultInt32_ = 41; |
| public bool HasDefaultInt32 { |
| get { return hasDefaultInt32; } |
| } |
| public int DefaultInt32 { |
| get { return defaultInt32_; } |
| } |
| |
| public const int DefaultInt64FieldNumber = 62; |
| private bool hasDefaultInt64; |
| private long defaultInt64_ = 42L; |
| public bool HasDefaultInt64 { |
| get { return hasDefaultInt64; } |
| } |
| public long DefaultInt64 { |
| get { return defaultInt64_; } |
| } |
| |
| public const int DefaultUint32FieldNumber = 63; |
| private bool hasDefaultUint32; |
| private uint defaultUint32_ = 43; |
| public bool HasDefaultUint32 { |
| get { return hasDefaultUint32; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint DefaultUint32 { |
| get { return defaultUint32_; } |
| } |
| |
| public const int DefaultUint64FieldNumber = 64; |
| private bool hasDefaultUint64; |
| private ulong defaultUint64_ = 44UL; |
| public bool HasDefaultUint64 { |
| get { return hasDefaultUint64; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong DefaultUint64 { |
| get { return defaultUint64_; } |
| } |
| |
| public const int DefaultSint32FieldNumber = 65; |
| private bool hasDefaultSint32; |
| private int defaultSint32_ = -45; |
| public bool HasDefaultSint32 { |
| get { return hasDefaultSint32; } |
| } |
| public int DefaultSint32 { |
| get { return defaultSint32_; } |
| } |
| |
| public const int DefaultSint64FieldNumber = 66; |
| private bool hasDefaultSint64; |
| private long defaultSint64_ = 46; |
| public bool HasDefaultSint64 { |
| get { return hasDefaultSint64; } |
| } |
| public long DefaultSint64 { |
| get { return defaultSint64_; } |
| } |
| |
| public const int DefaultFixed32FieldNumber = 67; |
| private bool hasDefaultFixed32; |
| private uint defaultFixed32_ = 47; |
| public bool HasDefaultFixed32 { |
| get { return hasDefaultFixed32; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint DefaultFixed32 { |
| get { return defaultFixed32_; } |
| } |
| |
| public const int DefaultFixed64FieldNumber = 68; |
| private bool hasDefaultFixed64; |
| private ulong defaultFixed64_ = 48; |
| public bool HasDefaultFixed64 { |
| get { return hasDefaultFixed64; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong DefaultFixed64 { |
| get { return defaultFixed64_; } |
| } |
| |
| public const int DefaultSfixed32FieldNumber = 69; |
| private bool hasDefaultSfixed32; |
| private int defaultSfixed32_ = 49; |
| public bool HasDefaultSfixed32 { |
| get { return hasDefaultSfixed32; } |
| } |
| public int DefaultSfixed32 { |
| get { return defaultSfixed32_; } |
| } |
| |
| public const int DefaultSfixed64FieldNumber = 70; |
| private bool hasDefaultSfixed64; |
| private long defaultSfixed64_ = -50; |
| public bool HasDefaultSfixed64 { |
| get { return hasDefaultSfixed64; } |
| } |
| public long DefaultSfixed64 { |
| get { return defaultSfixed64_; } |
| } |
| |
| public const int DefaultFloatFieldNumber = 71; |
| private bool hasDefaultFloat; |
| private float defaultFloat_ = 51.5F; |
| public bool HasDefaultFloat { |
| get { return hasDefaultFloat; } |
| } |
| public float DefaultFloat { |
| get { return defaultFloat_; } |
| } |
| |
| public const int DefaultDoubleFieldNumber = 72; |
| private bool hasDefaultDouble; |
| private double defaultDouble_ = 52000D; |
| public bool HasDefaultDouble { |
| get { return hasDefaultDouble; } |
| } |
| public double DefaultDouble { |
| get { return defaultDouble_; } |
| } |
| |
| public const int DefaultBoolFieldNumber = 73; |
| private bool hasDefaultBool; |
| private bool defaultBool_ = true; |
| public bool HasDefaultBool { |
| get { return hasDefaultBool; } |
| } |
| public bool DefaultBool { |
| get { return defaultBool_; } |
| } |
| |
| public const int DefaultStringFieldNumber = 74; |
| private bool hasDefaultString; |
| private string defaultString_ = "hello"; |
| public bool HasDefaultString { |
| get { return hasDefaultString; } |
| } |
| public string DefaultString { |
| get { return defaultString_; } |
| } |
| |
| public const int DefaultBytesFieldNumber = 75; |
| private bool hasDefaultBytes; |
| private pb::ByteString defaultBytes_ = ByteString.FromBase64("d29ybGQ="); |
| public bool HasDefaultBytes { |
| get { return hasDefaultBytes; } |
| } |
| public pb::ByteString DefaultBytes { |
| get { return defaultBytes_; } |
| } |
| |
| public const int DefaultNestedEnumFieldNumber = 81; |
| private bool hasDefaultNestedEnum; |
| private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR; |
| public bool HasDefaultNestedEnum { |
| get { return hasDefaultNestedEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum { |
| get { return defaultNestedEnum_; } |
| } |
| |
| public const int DefaultForeignEnumFieldNumber = 82; |
| private bool hasDefaultForeignEnum; |
| private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR; |
| public bool HasDefaultForeignEnum { |
| get { return hasDefaultForeignEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum { |
| get { return defaultForeignEnum_; } |
| } |
| |
| public const int DefaultImportEnumFieldNumber = 83; |
| private bool hasDefaultImportEnum; |
| private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR; |
| public bool HasDefaultImportEnum { |
| get { return hasDefaultImportEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum { |
| get { return defaultImportEnum_; } |
| } |
| |
| public const int DefaultStringPieceFieldNumber = 84; |
| private bool hasDefaultStringPiece; |
| private string defaultStringPiece_ = "abc"; |
| public bool HasDefaultStringPiece { |
| get { return hasDefaultStringPiece; } |
| } |
| public string DefaultStringPiece { |
| get { return defaultStringPiece_; } |
| } |
| |
| public const int DefaultCordFieldNumber = 85; |
| private bool hasDefaultCord; |
| private string defaultCord_ = "123"; |
| public bool HasDefaultCord { |
| get { return hasDefaultCord; } |
| } |
| public string DefaultCord { |
| get { return defaultCord_; } |
| } |
| |
| public override bool IsInitialized { |
| get { |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| if (HasOptionalInt32) { |
| output.WriteInt32(1, OptionalInt32); |
| } |
| if (HasOptionalInt64) { |
| output.WriteInt64(2, OptionalInt64); |
| } |
| if (HasOptionalUint32) { |
| output.WriteUInt32(3, OptionalUint32); |
| } |
| if (HasOptionalUint64) { |
| output.WriteUInt64(4, OptionalUint64); |
| } |
| if (HasOptionalSint32) { |
| output.WriteSInt32(5, OptionalSint32); |
| } |
| if (HasOptionalSint64) { |
| output.WriteSInt64(6, OptionalSint64); |
| } |
| if (HasOptionalFixed32) { |
| output.WriteFixed32(7, OptionalFixed32); |
| } |
| if (HasOptionalFixed64) { |
| output.WriteFixed64(8, OptionalFixed64); |
| } |
| if (HasOptionalSfixed32) { |
| output.WriteSFixed32(9, OptionalSfixed32); |
| } |
| if (HasOptionalSfixed64) { |
| output.WriteSFixed64(10, OptionalSfixed64); |
| } |
| if (HasOptionalFloat) { |
| output.WriteFloat(11, OptionalFloat); |
| } |
| if (HasOptionalDouble) { |
| output.WriteDouble(12, OptionalDouble); |
| } |
| if (HasOptionalBool) { |
| output.WriteBool(13, OptionalBool); |
| } |
| if (HasOptionalString) { |
| output.WriteString(14, OptionalString); |
| } |
| if (HasOptionalBytes) { |
| output.WriteBytes(15, OptionalBytes); |
| } |
| if (HasOptionalGroup) { |
| output.WriteGroup(16, OptionalGroup); |
| } |
| if (HasOptionalNestedMessage) { |
| output.WriteMessage(18, OptionalNestedMessage); |
| } |
| if (HasOptionalForeignMessage) { |
| output.WriteMessage(19, OptionalForeignMessage); |
| } |
| if (HasOptionalImportMessage) { |
| output.WriteMessage(20, OptionalImportMessage); |
| } |
| if (HasOptionalNestedEnum) { |
| output.WriteEnum(21, (int) OptionalNestedEnum); |
| } |
| if (HasOptionalForeignEnum) { |
| output.WriteEnum(22, (int) OptionalForeignEnum); |
| } |
| if (HasOptionalImportEnum) { |
| output.WriteEnum(23, (int) OptionalImportEnum); |
| } |
| if (HasOptionalStringPiece) { |
| output.WriteString(24, OptionalStringPiece); |
| } |
| if (HasOptionalCord) { |
| output.WriteString(25, OptionalCord); |
| } |
| if (repeatedInt32_.Count > 0) { |
| foreach (int element in repeatedInt32_) { |
| output.WriteInt32(31, element); |
| } |
| } |
| if (repeatedInt64_.Count > 0) { |
| foreach (long element in repeatedInt64_) { |
| output.WriteInt64(32, element); |
| } |
| } |
| if (repeatedUint32_.Count > 0) { |
| foreach (uint element in repeatedUint32_) { |
| output.WriteUInt32(33, element); |
| } |
| } |
| if (repeatedUint64_.Count > 0) { |
| foreach (ulong element in repeatedUint64_) { |
| output.WriteUInt64(34, element); |
| } |
| } |
| if (repeatedSint32_.Count > 0) { |
| foreach (int element in repeatedSint32_) { |
| output.WriteSInt32(35, element); |
| } |
| } |
| if (repeatedSint64_.Count > 0) { |
| foreach (long element in repeatedSint64_) { |
| output.WriteSInt64(36, element); |
| } |
| } |
| if (repeatedFixed32_.Count > 0) { |
| foreach (uint element in repeatedFixed32_) { |
| output.WriteFixed32(37, element); |
| } |
| } |
| if (repeatedFixed64_.Count > 0) { |
| foreach (ulong element in repeatedFixed64_) { |
| output.WriteFixed64(38, element); |
| } |
| } |
| if (repeatedSfixed32_.Count > 0) { |
| foreach (int element in repeatedSfixed32_) { |
| output.WriteSFixed32(39, element); |
| } |
| } |
| if (repeatedSfixed64_.Count > 0) { |
| foreach (long element in repeatedSfixed64_) { |
| output.WriteSFixed64(40, element); |
| } |
| } |
| if (repeatedFloat_.Count > 0) { |
| foreach (float element in repeatedFloat_) { |
| output.WriteFloat(41, element); |
| } |
| } |
| if (repeatedDouble_.Count > 0) { |
| foreach (double element in repeatedDouble_) { |
| output.WriteDouble(42, element); |
| } |
| } |
| if (repeatedBool_.Count > 0) { |
| foreach (bool element in repeatedBool_) { |
| output.WriteBool(43, element); |
| } |
| } |
| if (repeatedString_.Count > 0) { |
| foreach (string element in repeatedString_) { |
| output.WriteString(44, element); |
| } |
| } |
| if (repeatedBytes_.Count > 0) { |
| foreach (pb::ByteString element in repeatedBytes_) { |
| output.WriteBytes(45, element); |
| } |
| } |
| foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup element in RepeatedGroupList) { |
| output.WriteGroup(46, element); |
| } |
| foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage element in RepeatedNestedMessageList) { |
| output.WriteMessage(48, element); |
| } |
| foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite element in RepeatedForeignMessageList) { |
| output.WriteMessage(49, element); |
| } |
| foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessageLite element in RepeatedImportMessageList) { |
| output.WriteMessage(50, element); |
| } |
| if (repeatedNestedEnum_.Count > 0) { |
| foreach (int element in repeatedNestedEnum_) { |
| output.WriteEnum(51, element); |
| } |
| } |
| if (repeatedForeignEnum_.Count > 0) { |
| foreach (int element in repeatedForeignEnum_) { |
| output.WriteEnum(52, element); |
| } |
| } |
| if (repeatedImportEnum_.Count > 0) { |
| foreach (int element in repeatedImportEnum_) { |
| output.WriteEnum(53, element); |
| } |
| } |
| if (repeatedStringPiece_.Count > 0) { |
| foreach (string element in repeatedStringPiece_) { |
| output.WriteString(54, element); |
| } |
| } |
| if (repeatedCord_.Count > 0) { |
| foreach (string element in repeatedCord_) { |
| output.WriteString(55, element); |
| } |
| } |
| if (HasDefaultInt32) { |
| output.WriteInt32(61, DefaultInt32); |
| } |
| if (HasDefaultInt64) { |
| output.WriteInt64(62, DefaultInt64); |
| } |
| if (HasDefaultUint32) { |
| output.WriteUInt32(63, DefaultUint32); |
| } |
| if (HasDefaultUint64) { |
| output.WriteUInt64(64, DefaultUint64); |
| } |
| if (HasDefaultSint32) { |
| output.WriteSInt32(65, DefaultSint32); |
| } |
| if (HasDefaultSint64) { |
| output.WriteSInt64(66, DefaultSint64); |
| } |
| if (HasDefaultFixed32) { |
| output.WriteFixed32(67, DefaultFixed32); |
| } |
| if (HasDefaultFixed64) { |
| output.WriteFixed64(68, DefaultFixed64); |
| } |
| if (HasDefaultSfixed32) { |
| output.WriteSFixed32(69, DefaultSfixed32); |
| } |
| if (HasDefaultSfixed64) { |
| output.WriteSFixed64(70, DefaultSfixed64); |
| } |
| if (HasDefaultFloat) { |
| output.WriteFloat(71, DefaultFloat); |
| } |
| if (HasDefaultDouble) { |
| output.WriteDouble(72, DefaultDouble); |
| } |
| if (HasDefaultBool) { |
| output.WriteBool(73, DefaultBool); |
| } |
| if (HasDefaultString) { |
| output.WriteString(74, DefaultString); |
| } |
| if (HasDefaultBytes) { |
| output.WriteBytes(75, DefaultBytes); |
| } |
| if (HasDefaultNestedEnum) { |
| output.WriteEnum(81, (int) DefaultNestedEnum); |
| } |
| if (HasDefaultForeignEnum) { |
| output.WriteEnum(82, (int) DefaultForeignEnum); |
| } |
| if (HasDefaultImportEnum) { |
| output.WriteEnum(83, (int) DefaultImportEnum); |
| } |
| if (HasDefaultStringPiece) { |
| output.WriteString(84, DefaultStringPiece); |
| } |
| if (HasDefaultCord) { |
| output.WriteString(85, DefaultCord); |
| } |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (HasOptionalInt32) { |
| size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32); |
| } |
| if (HasOptionalInt64) { |
| size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64); |
| } |
| if (HasOptionalUint32) { |
| size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32); |
| } |
| if (HasOptionalUint64) { |
| size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64); |
| } |
| if (HasOptionalSint32) { |
| size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32); |
| } |
| if (HasOptionalSint64) { |
| size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64); |
| } |
| if (HasOptionalFixed32) { |
| size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32); |
| } |
| if (HasOptionalFixed64) { |
| size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64); |
| } |
| if (HasOptionalSfixed32) { |
| size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32); |
| } |
| if (HasOptionalSfixed64) { |
| size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64); |
| } |
| if (HasOptionalFloat) { |
| size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat); |
| } |
| if (HasOptionalDouble) { |
| size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble); |
| } |
| if (HasOptionalBool) { |
| size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool); |
| } |
| if (HasOptionalString) { |
| size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString); |
| } |
| if (HasOptionalBytes) { |
| size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes); |
| } |
| if (HasOptionalGroup) { |
| size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup); |
| } |
| if (HasOptionalNestedMessage) { |
| size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage); |
| } |
| if (HasOptionalForeignMessage) { |
| size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage); |
| } |
| if (HasOptionalImportMessage) { |
| size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage); |
| } |
| if (HasOptionalNestedEnum) { |
| size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum); |
| } |
| if (HasOptionalForeignEnum) { |
| size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum); |
| } |
| if (HasOptionalImportEnum) { |
| size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum); |
| } |
| if (HasOptionalStringPiece) { |
| size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece); |
| } |
| if (HasOptionalCord) { |
| size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord); |
| } |
| { |
| int dataSize = 0; |
| foreach (int element in RepeatedInt32List) { |
| dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element); |
| } |
| size += dataSize; |
| size += 2 * repeatedInt32_.Count; |
| } |
| { |
| int dataSize = 0; |
| foreach (long element in RepeatedInt64List) { |
| dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element); |
| } |
| size += dataSize; |
| size += 2 * repeatedInt64_.Count; |
| } |
| { |
| int dataSize = 0; |
| foreach (uint element in RepeatedUint32List) { |
| dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element); |
| } |
| size += dataSize; |
| size += 2 * repeatedUint32_.Count; |
| } |
| { |
| int dataSize = 0; |
| foreach (ulong element in RepeatedUint64List) { |
| dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element); |
| } |
| size += dataSize; |
| size += 2 * repeatedUint64_.Count; |
| } |
| { |
| int dataSize = 0; |
| foreach (int element in RepeatedSint32List) { |
| dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element); |
| } |
| size += dataSize; |
| size += 2 * repeatedSint32_.Count; |
| } |
| { |
| int dataSize = 0; |
| foreach (long element in RepeatedSint64List) { |
| dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element); |
| } |
| size += dataSize; |
| size += 2 * repeatedSint64_.Count; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 4 * repeatedFixed32_.Count; |
| size += dataSize; |
| size += 2 * repeatedFixed32_.Count; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 8 * repeatedFixed64_.Count; |
| size += dataSize; |
| size += 2 * repeatedFixed64_.Count; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 4 * repeatedSfixed32_.Count; |
| size += dataSize; |
| size += 2 * repeatedSfixed32_.Count; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 8 * repeatedSfixed64_.Count; |
| size += dataSize; |
| size += 2 * repeatedSfixed64_.Count; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 4 * repeatedFloat_.Count; |
| size += dataSize; |
| size += 2 * repeatedFloat_.Count; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 8 * repeatedDouble_.Count; |
| size += dataSize; |
| size += 2 * repeatedDouble_.Count; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 1 * repeatedBool_.Count; |
| size += dataSize; |
| size += 2 * repeatedBool_.Count; |
| } |
| { |
| int dataSize = 0; |
| foreach (string element in RepeatedStringList) { |
| dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| } |
| size += dataSize; |
| size += 2 * repeatedString_.Count; |
| } |
| { |
| int dataSize = 0; |
| foreach (pb::ByteString element in RepeatedBytesList) { |
| dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element); |
| } |
| size += dataSize; |
| size += 2 * repeatedBytes_.Count; |
| } |
| foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup element in RepeatedGroupList) { |
| size += pb::CodedOutputStream.ComputeGroupSize(46, element); |
| } |
| foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage element in RepeatedNestedMessageList) { |
| size += pb::CodedOutputStream.ComputeMessageSize(48, element); |
| } |
| foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite element in RepeatedForeignMessageList) { |
| size += pb::CodedOutputStream.ComputeMessageSize(49, element); |
| } |
| foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessageLite element in RepeatedImportMessageList) { |
| size += pb::CodedOutputStream.ComputeMessageSize(50, element); |
| } |
| { |
| int dataSize = 0; |
| if (repeatedNestedEnum_.Count > 0) { |
| foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum element in repeatedNestedEnum_) { |
| dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| } |
| size += dataSize; |
| size += 2 * repeatedNestedEnum_.Count; |
| } |
| } |
| { |
| int dataSize = 0; |
| if (repeatedForeignEnum_.Count > 0) { |
| foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in repeatedForeignEnum_) { |
| dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| } |
| size += dataSize; |
| size += 2 * repeatedForeignEnum_.Count; |
| } |
| } |
| { |
| int dataSize = 0; |
| if (repeatedImportEnum_.Count > 0) { |
| foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnumLite element in repeatedImportEnum_) { |
| dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| } |
| size += dataSize; |
| size += 2 * repeatedImportEnum_.Count; |
| } |
| } |
| { |
| int dataSize = 0; |
| foreach (string element in RepeatedStringPieceList) { |
| dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| } |
| size += dataSize; |
| size += 2 * repeatedStringPiece_.Count; |
| } |
| { |
| int dataSize = 0; |
| foreach (string element in RepeatedCordList) { |
| dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| } |
| size += dataSize; |
| size += 2 * repeatedCord_.Count; |
| } |
| if (HasDefaultInt32) { |
| size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32); |
| } |
| if (HasDefaultInt64) { |
| size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64); |
| } |
| if (HasDefaultUint32) { |
| size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32); |
| } |
| if (HasDefaultUint64) { |
| size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64); |
| } |
| if (HasDefaultSint32) { |
| size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32); |
| } |
| if (HasDefaultSint64) { |
| size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64); |
| } |
| if (HasDefaultFixed32) { |
| size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32); |
| } |
| if (HasDefaultFixed64) { |
| size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64); |
| } |
| if (HasDefaultSfixed32) { |
| size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32); |
| } |
| if (HasDefaultSfixed64) { |
| size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64); |
| } |
| if (HasDefaultFloat) { |
| size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat); |
| } |
| if (HasDefaultDouble) { |
| size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble); |
| } |
| if (HasDefaultBool) { |
| size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool); |
| } |
| if (HasDefaultString) { |
| size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString); |
| } |
| if (HasDefaultBytes) { |
| size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes); |
| } |
| if (HasDefaultNestedEnum) { |
| size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum); |
| } |
| if (HasDefaultForeignEnum) { |
| size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum); |
| } |
| if (HasDefaultImportEnum) { |
| size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum); |
| } |
| if (HasDefaultStringPiece) { |
| size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece); |
| } |
| if (HasDefaultCord) { |
| size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord); |
| } |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| if (hasOptionalInt32) hash ^= optionalInt32_.GetHashCode(); |
| if (hasOptionalInt64) hash ^= optionalInt64_.GetHashCode(); |
| if (hasOptionalUint32) hash ^= optionalUint32_.GetHashCode(); |
| if (hasOptionalUint64) hash ^= optionalUint64_.GetHashCode(); |
| if (hasOptionalSint32) hash ^= optionalSint32_.GetHashCode(); |
| if (hasOptionalSint64) hash ^= optionalSint64_.GetHashCode(); |
| if (hasOptionalFixed32) hash ^= optionalFixed32_.GetHashCode(); |
| if (hasOptionalFixed64) hash ^= optionalFixed64_.GetHashCode(); |
| if (hasOptionalSfixed32) hash ^= optionalSfixed32_.GetHashCode(); |
| if (hasOptionalSfixed64) hash ^= optionalSfixed64_.GetHashCode(); |
| if (hasOptionalFloat) hash ^= optionalFloat_.GetHashCode(); |
| if (hasOptionalDouble) hash ^= optionalDouble_.GetHashCode(); |
| if (hasOptionalBool) hash ^= optionalBool_.GetHashCode(); |
| if (hasOptionalString) hash ^= optionalString_.GetHashCode(); |
| if (hasOptionalBytes) hash ^= optionalBytes_.GetHashCode(); |
| if (hasOptionalGroup) hash ^= optionalGroup_.GetHashCode(); |
| if (hasOptionalNestedMessage) hash ^= optionalNestedMessage_.GetHashCode(); |
| if (hasOptionalForeignMessage) hash ^= optionalForeignMessage_.GetHashCode(); |
| if (hasOptionalImportMessage) hash ^= optionalImportMessage_.GetHashCode(); |
| if (hasOptionalNestedEnum) hash ^= optionalNestedEnum_.GetHashCode(); |
| if (hasOptionalForeignEnum) hash ^= optionalForeignEnum_.GetHashCode(); |
| if (hasOptionalImportEnum) hash ^= optionalImportEnum_.GetHashCode(); |
| if (hasOptionalStringPiece) hash ^= optionalStringPiece_.GetHashCode(); |
| if (hasOptionalCord) hash ^= optionalCord_.GetHashCode(); |
| foreach(int i in repeatedInt32_) |
| hash ^= i.GetHashCode(); |
| foreach(long i in repeatedInt64_) |
| hash ^= i.GetHashCode(); |
| foreach(uint i in repeatedUint32_) |
| hash ^= i.GetHashCode(); |
| foreach(ulong i in repeatedUint64_) |
| hash ^= i.GetHashCode(); |
| foreach(int i in repeatedSint32_) |
| hash ^= i.GetHashCode(); |
| foreach(long i in repeatedSint64_) |
| hash ^= i.GetHashCode(); |
| foreach(uint i in repeatedFixed32_) |
| hash ^= i.GetHashCode(); |
| foreach(ulong i in repeatedFixed64_) |
| hash ^= i.GetHashCode(); |
| foreach(int i in repeatedSfixed32_) |
| hash ^= i.GetHashCode(); |
| foreach(long i in repeatedSfixed64_) |
| hash ^= i.GetHashCode(); |
| foreach(float i in repeatedFloat_) |
| hash ^= i.GetHashCode(); |
| foreach(double i in repeatedDouble_) |
| hash ^= i.GetHashCode(); |
| foreach(bool i in repeatedBool_) |
| hash ^= i.GetHashCode(); |
| foreach(string i in repeatedString_) |
| hash ^= i.GetHashCode(); |
| foreach(pb::ByteString i in repeatedBytes_) |
| hash ^= i.GetHashCode(); |
| foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup i in repeatedGroup_) |
| hash ^= i.GetHashCode(); |
| foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage i in repeatedNestedMessage_) |
| hash ^= i.GetHashCode(); |
| foreach(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite i in repeatedForeignMessage_) |
| hash ^= i.GetHashCode(); |
| foreach(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite i in repeatedImportMessage_) |
| hash ^= i.GetHashCode(); |
| foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum i in repeatedNestedEnum_) |
| hash ^= i.GetHashCode(); |
| foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in repeatedForeignEnum_) |
| hash ^= i.GetHashCode(); |
| foreach(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite i in repeatedImportEnum_) |
| hash ^= i.GetHashCode(); |
| foreach(string i in repeatedStringPiece_) |
| hash ^= i.GetHashCode(); |
| foreach(string i in repeatedCord_) |
| hash ^= i.GetHashCode(); |
| if (hasDefaultInt32) hash ^= defaultInt32_.GetHashCode(); |
| if (hasDefaultInt64) hash ^= defaultInt64_.GetHashCode(); |
| if (hasDefaultUint32) hash ^= defaultUint32_.GetHashCode(); |
| if (hasDefaultUint64) hash ^= defaultUint64_.GetHashCode(); |
| if (hasDefaultSint32) hash ^= defaultSint32_.GetHashCode(); |
| if (hasDefaultSint64) hash ^= defaultSint64_.GetHashCode(); |
| if (hasDefaultFixed32) hash ^= defaultFixed32_.GetHashCode(); |
| if (hasDefaultFixed64) hash ^= defaultFixed64_.GetHashCode(); |
| if (hasDefaultSfixed32) hash ^= defaultSfixed32_.GetHashCode(); |
| if (hasDefaultSfixed64) hash ^= defaultSfixed64_.GetHashCode(); |
| if (hasDefaultFloat) hash ^= defaultFloat_.GetHashCode(); |
| if (hasDefaultDouble) hash ^= defaultDouble_.GetHashCode(); |
| if (hasDefaultBool) hash ^= defaultBool_.GetHashCode(); |
| if (hasDefaultString) hash ^= defaultString_.GetHashCode(); |
| if (hasDefaultBytes) hash ^= defaultBytes_.GetHashCode(); |
| if (hasDefaultNestedEnum) hash ^= defaultNestedEnum_.GetHashCode(); |
| if (hasDefaultForeignEnum) hash ^= defaultForeignEnum_.GetHashCode(); |
| if (hasDefaultImportEnum) hash ^= defaultImportEnum_.GetHashCode(); |
| if (hasDefaultStringPiece) hash ^= defaultStringPiece_.GetHashCode(); |
| if (hasDefaultCord) hash ^= defaultCord_.GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| TestAllTypesLite other = obj as TestAllTypesLite; |
| if (other == null) return false; |
| if (hasOptionalInt32 != other.hasOptionalInt32 || (hasOptionalInt32 && !optionalInt32_.Equals(other.optionalInt32_))) return false; |
| if (hasOptionalInt64 != other.hasOptionalInt64 || (hasOptionalInt64 && !optionalInt64_.Equals(other.optionalInt64_))) return false; |
| if (hasOptionalUint32 != other.hasOptionalUint32 || (hasOptionalUint32 && !optionalUint32_.Equals(other.optionalUint32_))) return false; |
| if (hasOptionalUint64 != other.hasOptionalUint64 || (hasOptionalUint64 && !optionalUint64_.Equals(other.optionalUint64_))) return false; |
| if (hasOptionalSint32 != other.hasOptionalSint32 || (hasOptionalSint32 && !optionalSint32_.Equals(other.optionalSint32_))) return false; |
| if (hasOptionalSint64 != other.hasOptionalSint64 || (hasOptionalSint64 && !optionalSint64_.Equals(other.optionalSint64_))) return false; |
| if (hasOptionalFixed32 != other.hasOptionalFixed32 || (hasOptionalFixed32 && !optionalFixed32_.Equals(other.optionalFixed32_))) return false; |
| if (hasOptionalFixed64 != other.hasOptionalFixed64 || (hasOptionalFixed64 && !optionalFixed64_.Equals(other.optionalFixed64_))) return false; |
| if (hasOptionalSfixed32 != other.hasOptionalSfixed32 || (hasOptionalSfixed32 && !optionalSfixed32_.Equals(other.optionalSfixed32_))) return false; |
| if (hasOptionalSfixed64 != other.hasOptionalSfixed64 || (hasOptionalSfixed64 && !optionalSfixed64_.Equals(other.optionalSfixed64_))) return false; |
| if (hasOptionalFloat != other.hasOptionalFloat || (hasOptionalFloat && !optionalFloat_.Equals(other.optionalFloat_))) return false; |
| if (hasOptionalDouble != other.hasOptionalDouble || (hasOptionalDouble && !optionalDouble_.Equals(other.optionalDouble_))) return false; |
| if (hasOptionalBool != other.hasOptionalBool || (hasOptionalBool && !optionalBool_.Equals(other.optionalBool_))) return false; |
| if (hasOptionalString != other.hasOptionalString || (hasOptionalString && !optionalString_.Equals(other.optionalString_))) return false; |
| if (hasOptionalBytes != other.hasOptionalBytes || (hasOptionalBytes && !optionalBytes_.Equals(other.optionalBytes_))) return false; |
| if (hasOptionalGroup != other.hasOptionalGroup || (hasOptionalGroup && !optionalGroup_.Equals(other.optionalGroup_))) return false; |
| if (hasOptionalNestedMessage != other.hasOptionalNestedMessage || (hasOptionalNestedMessage && !optionalNestedMessage_.Equals(other.optionalNestedMessage_))) return false; |
| if (hasOptionalForeignMessage != other.hasOptionalForeignMessage || (hasOptionalForeignMessage && !optionalForeignMessage_.Equals(other.optionalForeignMessage_))) return false; |
| if (hasOptionalImportMessage != other.hasOptionalImportMessage || (hasOptionalImportMessage && !optionalImportMessage_.Equals(other.optionalImportMessage_))) return false; |
| if (hasOptionalNestedEnum != other.hasOptionalNestedEnum || (hasOptionalNestedEnum && !optionalNestedEnum_.Equals(other.optionalNestedEnum_))) return false; |
| if (hasOptionalForeignEnum != other.hasOptionalForeignEnum || (hasOptionalForeignEnum && !optionalForeignEnum_.Equals(other.optionalForeignEnum_))) return false; |
| if (hasOptionalImportEnum != other.hasOptionalImportEnum || (hasOptionalImportEnum && !optionalImportEnum_.Equals(other.optionalImportEnum_))) return false; |
| if (hasOptionalStringPiece != other.hasOptionalStringPiece || (hasOptionalStringPiece && !optionalStringPiece_.Equals(other.optionalStringPiece_))) return false; |
| if (hasOptionalCord != other.hasOptionalCord || (hasOptionalCord && !optionalCord_.Equals(other.optionalCord_))) return false; |
| if(repeatedInt32_.Count != other.repeatedInt32_.Count) return false; |
| for(int ix=0; ix < repeatedInt32_.Count; ix++) |
| if(!repeatedInt32_[ix].Equals(other.repeatedInt32_[ix])) return false; |
| if(repeatedInt64_.Count != other.repeatedInt64_.Count) return false; |
| for(int ix=0; ix < repeatedInt64_.Count; ix++) |
| if(!repeatedInt64_[ix].Equals(other.repeatedInt64_[ix])) return false; |
| if(repeatedUint32_.Count != other.repeatedUint32_.Count) return false; |
| for(int ix=0; ix < repeatedUint32_.Count; ix++) |
| if(!repeatedUint32_[ix].Equals(other.repeatedUint32_[ix])) return false; |
| if(repeatedUint64_.Count != other.repeatedUint64_.Count) return false; |
| for(int ix=0; ix < repeatedUint64_.Count; ix++) |
| if(!repeatedUint64_[ix].Equals(other.repeatedUint64_[ix])) return false; |
| if(repeatedSint32_.Count != other.repeatedSint32_.Count) return false; |
| for(int ix=0; ix < repeatedSint32_.Count; ix++) |
| if(!repeatedSint32_[ix].Equals(other.repeatedSint32_[ix])) return false; |
| if(repeatedSint64_.Count != other.repeatedSint64_.Count) return false; |
| for(int ix=0; ix < repeatedSint64_.Count; ix++) |
| if(!repeatedSint64_[ix].Equals(other.repeatedSint64_[ix])) return false; |
| if(repeatedFixed32_.Count != other.repeatedFixed32_.Count) return false; |
| for(int ix=0; ix < repeatedFixed32_.Count; ix++) |
| if(!repeatedFixed32_[ix].Equals(other.repeatedFixed32_[ix])) return false; |
| if(repeatedFixed64_.Count != other.repeatedFixed64_.Count) return false; |
| for(int ix=0; ix < repeatedFixed64_.Count; ix++) |
| if(!repeatedFixed64_[ix].Equals(other.repeatedFixed64_[ix])) return false; |
| if(repeatedSfixed32_.Count != other.repeatedSfixed32_.Count) return false; |
| for(int ix=0; ix < repeatedSfixed32_.Count; ix++) |
| if(!repeatedSfixed32_[ix].Equals(other.repeatedSfixed32_[ix])) return false; |
| if(repeatedSfixed64_.Count != other.repeatedSfixed64_.Count) return false; |
| for(int ix=0; ix < repeatedSfixed64_.Count; ix++) |
| if(!repeatedSfixed64_[ix].Equals(other.repeatedSfixed64_[ix])) return false; |
| if(repeatedFloat_.Count != other.repeatedFloat_.Count) return false; |
| for(int ix=0; ix < repeatedFloat_.Count; ix++) |
| if(!repeatedFloat_[ix].Equals(other.repeatedFloat_[ix])) return false; |
| if(repeatedDouble_.Count != other.repeatedDouble_.Count) return false; |
| for(int ix=0; ix < repeatedDouble_.Count; ix++) |
| if(!repeatedDouble_[ix].Equals(other.repeatedDouble_[ix])) return false; |
| if(repeatedBool_.Count != other.repeatedBool_.Count) return false; |
| for(int ix=0; ix < repeatedBool_.Count; ix++) |
| if(!repeatedBool_[ix].Equals(other.repeatedBool_[ix])) return false; |
| if(repeatedString_.Count != other.repeatedString_.Count) return false; |
| for(int ix=0; ix < repeatedString_.Count; ix++) |
| if(!repeatedString_[ix].Equals(other.repeatedString_[ix])) return false; |
| if(repeatedBytes_.Count != other.repeatedBytes_.Count) return false; |
| for(int ix=0; ix < repeatedBytes_.Count; ix++) |
| if(!repeatedBytes_[ix].Equals(other.repeatedBytes_[ix])) return false; |
| if(repeatedGroup_.Count != other.repeatedGroup_.Count) return false; |
| for(int ix=0; ix < repeatedGroup_.Count; ix++) |
| if(!repeatedGroup_[ix].Equals(other.repeatedGroup_[ix])) return false; |
| if(repeatedNestedMessage_.Count != other.repeatedNestedMessage_.Count) return false; |
| for(int ix=0; ix < repeatedNestedMessage_.Count; ix++) |
| if(!repeatedNestedMessage_[ix].Equals(other.repeatedNestedMessage_[ix])) return false; |
| if(repeatedForeignMessage_.Count != other.repeatedForeignMessage_.Count) return false; |
| for(int ix=0; ix < repeatedForeignMessage_.Count; ix++) |
| if(!repeatedForeignMessage_[ix].Equals(other.repeatedForeignMessage_[ix])) return false; |
| if(repeatedImportMessage_.Count != other.repeatedImportMessage_.Count) return false; |
| for(int ix=0; ix < repeatedImportMessage_.Count; ix++) |
| if(!repeatedImportMessage_[ix].Equals(other.repeatedImportMessage_[ix])) return false; |
| if(repeatedNestedEnum_.Count != other.repeatedNestedEnum_.Count) return false; |
| for(int ix=0; ix < repeatedNestedEnum_.Count; ix++) |
| if(!repeatedNestedEnum_[ix].Equals(other.repeatedNestedEnum_[ix])) return false; |
| if(repeatedForeignEnum_.Count != other.repeatedForeignEnum_.Count) return false; |
| for(int ix=0; ix < repeatedForeignEnum_.Count; ix++) |
| if(!repeatedForeignEnum_[ix].Equals(other.repeatedForeignEnum_[ix])) return false; |
| if(repeatedImportEnum_.Count != other.repeatedImportEnum_.Count) return false; |
| for(int ix=0; ix < repeatedImportEnum_.Count; ix++) |
| if(!repeatedImportEnum_[ix].Equals(other.repeatedImportEnum_[ix])) return false; |
| if(repeatedStringPiece_.Count != other.repeatedStringPiece_.Count) return false; |
| for(int ix=0; ix < repeatedStringPiece_.Count; ix++) |
| if(!repeatedStringPiece_[ix].Equals(other.repeatedStringPiece_[ix])) return false; |
| if(repeatedCord_.Count != other.repeatedCord_.Count) return false; |
| for(int ix=0; ix < repeatedCord_.Count; ix++) |
| if(!repeatedCord_[ix].Equals(other.repeatedCord_[ix])) return false; |
| if (hasDefaultInt32 != other.hasDefaultInt32 || (hasDefaultInt32 && !defaultInt32_.Equals(other.defaultInt32_))) return false; |
| if (hasDefaultInt64 != other.hasDefaultInt64 || (hasDefaultInt64 && !defaultInt64_.Equals(other.defaultInt64_))) return false; |
| if (hasDefaultUint32 != other.hasDefaultUint32 || (hasDefaultUint32 && !defaultUint32_.Equals(other.defaultUint32_))) return false; |
| if (hasDefaultUint64 != other.hasDefaultUint64 || (hasDefaultUint64 && !defaultUint64_.Equals(other.defaultUint64_))) return false; |
| if (hasDefaultSint32 != other.hasDefaultSint32 || (hasDefaultSint32 && !defaultSint32_.Equals(other.defaultSint32_))) return false; |
| if (hasDefaultSint64 != other.hasDefaultSint64 || (hasDefaultSint64 && !defaultSint64_.Equals(other.defaultSint64_))) return false; |
| if (hasDefaultFixed32 != other.hasDefaultFixed32 || (hasDefaultFixed32 && !defaultFixed32_.Equals(other.defaultFixed32_))) return false; |
| if (hasDefaultFixed64 != other.hasDefaultFixed64 || (hasDefaultFixed64 && !defaultFixed64_.Equals(other.defaultFixed64_))) return false; |
| if (hasDefaultSfixed32 != other.hasDefaultSfixed32 || (hasDefaultSfixed32 && !defaultSfixed32_.Equals(other.defaultSfixed32_))) return false; |
| if (hasDefaultSfixed64 != other.hasDefaultSfixed64 || (hasDefaultSfixed64 && !defaultSfixed64_.Equals(other.defaultSfixed64_))) return false; |
| if (hasDefaultFloat != other.hasDefaultFloat || (hasDefaultFloat && !defaultFloat_.Equals(other.defaultFloat_))) return false; |
| if (hasDefaultDouble != other.hasDefaultDouble || (hasDefaultDouble && !defaultDouble_.Equals(other.defaultDouble_))) return false; |
| if (hasDefaultBool != other.hasDefaultBool || (hasDefaultBool && !defaultBool_.Equals(other.defaultBool_))) return false; |
| if (hasDefaultString != other.hasDefaultString || (hasDefaultString && !defaultString_.Equals(other.defaultString_))) return false; |
| if (hasDefaultBytes != other.hasDefaultBytes || (hasDefaultBytes && !defaultBytes_.Equals(other.defaultBytes_))) return false; |
| if (hasDefaultNestedEnum != other.hasDefaultNestedEnum || (hasDefaultNestedEnum && !defaultNestedEnum_.Equals(other.defaultNestedEnum_))) return false; |
| if (hasDefaultForeignEnum != other.hasDefaultForeignEnum || (hasDefaultForeignEnum && !defaultForeignEnum_.Equals(other.defaultForeignEnum_))) return false; |
| if (hasDefaultImportEnum != other.hasDefaultImportEnum || (hasDefaultImportEnum && !defaultImportEnum_.Equals(other.defaultImportEnum_))) return false; |
| if (hasDefaultStringPiece != other.hasDefaultStringPiece || (hasDefaultStringPiece && !defaultStringPiece_.Equals(other.defaultStringPiece_))) return false; |
| if (hasDefaultCord != other.hasDefaultCord || (hasDefaultCord && !defaultCord_.Equals(other.defaultCord_))) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| PrintField("optional_int32", hasOptionalInt32, optionalInt32_, writer); |
| PrintField("optional_int64", hasOptionalInt64, optionalInt64_, writer); |
| PrintField("optional_uint32", hasOptionalUint32, optionalUint32_, writer); |
| PrintField("optional_uint64", hasOptionalUint64, optionalUint64_, writer); |
| PrintField("optional_sint32", hasOptionalSint32, optionalSint32_, writer); |
| PrintField("optional_sint64", hasOptionalSint64, optionalSint64_, writer); |
| PrintField("optional_fixed32", hasOptionalFixed32, optionalFixed32_, writer); |
| PrintField("optional_fixed64", hasOptionalFixed64, optionalFixed64_, writer); |
| PrintField("optional_sfixed32", hasOptionalSfixed32, optionalSfixed32_, writer); |
| PrintField("optional_sfixed64", hasOptionalSfixed64, optionalSfixed64_, writer); |
| PrintField("optional_float", hasOptionalFloat, optionalFloat_, writer); |
| PrintField("optional_double", hasOptionalDouble, optionalDouble_, writer); |
| PrintField("optional_bool", hasOptionalBool, optionalBool_, writer); |
| PrintField("optional_string", hasOptionalString, optionalString_, writer); |
| PrintField("optional_bytes", hasOptionalBytes, optionalBytes_, writer); |
| PrintField("OptionalGroup", hasOptionalGroup, optionalGroup_, writer); |
| PrintField("optional_nested_message", hasOptionalNestedMessage, optionalNestedMessage_, writer); |
| PrintField("optional_foreign_message", hasOptionalForeignMessage, optionalForeignMessage_, writer); |
| PrintField("optional_import_message", hasOptionalImportMessage, optionalImportMessage_, writer); |
| PrintField("optional_nested_enum", hasOptionalNestedEnum, optionalNestedEnum_, writer); |
| PrintField("optional_foreign_enum", hasOptionalForeignEnum, optionalForeignEnum_, writer); |
| PrintField("optional_import_enum", hasOptionalImportEnum, optionalImportEnum_, writer); |
| PrintField("optional_string_piece", hasOptionalStringPiece, optionalStringPiece_, writer); |
| PrintField("optional_cord", hasOptionalCord, optionalCord_, writer); |
| PrintField("repeated_int32", repeatedInt32_, writer); |
| PrintField("repeated_int64", repeatedInt64_, writer); |
| PrintField("repeated_uint32", repeatedUint32_, writer); |
| PrintField("repeated_uint64", repeatedUint64_, writer); |
| PrintField("repeated_sint32", repeatedSint32_, writer); |
| PrintField("repeated_sint64", repeatedSint64_, writer); |
| PrintField("repeated_fixed32", repeatedFixed32_, writer); |
| PrintField("repeated_fixed64", repeatedFixed64_, writer); |
| PrintField("repeated_sfixed32", repeatedSfixed32_, writer); |
| PrintField("repeated_sfixed64", repeatedSfixed64_, writer); |
| PrintField("repeated_float", repeatedFloat_, writer); |
| PrintField("repeated_double", repeatedDouble_, writer); |
| PrintField("repeated_bool", repeatedBool_, writer); |
| PrintField("repeated_string", repeatedString_, writer); |
| PrintField("repeated_bytes", repeatedBytes_, writer); |
| PrintField("RepeatedGroup", repeatedGroup_, writer); |
| PrintField("repeated_nested_message", repeatedNestedMessage_, writer); |
| PrintField("repeated_foreign_message", repeatedForeignMessage_, writer); |
| PrintField("repeated_import_message", repeatedImportMessage_, writer); |
| PrintField("repeated_nested_enum", repeatedNestedEnum_, writer); |
| PrintField("repeated_foreign_enum", repeatedForeignEnum_, writer); |
| PrintField("repeated_import_enum", repeatedImportEnum_, writer); |
| PrintField("repeated_string_piece", repeatedStringPiece_, writer); |
| PrintField("repeated_cord", repeatedCord_, writer); |
| PrintField("default_int32", hasDefaultInt32, defaultInt32_, writer); |
| PrintField("default_int64", hasDefaultInt64, defaultInt64_, writer); |
| PrintField("default_uint32", hasDefaultUint32, defaultUint32_, writer); |
| PrintField("default_uint64", hasDefaultUint64, defaultUint64_, writer); |
| PrintField("default_sint32", hasDefaultSint32, defaultSint32_, writer); |
| PrintField("default_sint64", hasDefaultSint64, defaultSint64_, writer); |
| PrintField("default_fixed32", hasDefaultFixed32, defaultFixed32_, writer); |
| PrintField("default_fixed64", hasDefaultFixed64, defaultFixed64_, writer); |
| PrintField("default_sfixed32", hasDefaultSfixed32, defaultSfixed32_, writer); |
| PrintField("default_sfixed64", hasDefaultSfixed64, defaultSfixed64_, writer); |
| PrintField("default_float", hasDefaultFloat, defaultFloat_, writer); |
| PrintField("default_double", hasDefaultDouble, defaultDouble_, writer); |
| PrintField("default_bool", hasDefaultBool, defaultBool_, writer); |
| PrintField("default_string", hasDefaultString, defaultString_, writer); |
| PrintField("default_bytes", hasDefaultBytes, defaultBytes_, writer); |
| PrintField("default_nested_enum", hasDefaultNestedEnum, defaultNestedEnum_, writer); |
| PrintField("default_foreign_enum", hasDefaultForeignEnum, defaultForeignEnum_, writer); |
| PrintField("default_import_enum", hasDefaultImportEnum, defaultImportEnum_, writer); |
| PrintField("default_string_piece", hasDefaultStringPiece, defaultStringPiece_, writer); |
| PrintField("default_cord", hasDefaultCord, defaultCord_, writer); |
| } |
| #endregion |
| |
| public static TestAllTypesLite ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestAllTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestAllTypesLite ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestAllTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestAllTypesLite ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestAllTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static TestAllTypesLite ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestAllTypesLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(TestAllTypesLite prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::GeneratedBuilderLite<TestAllTypesLite, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| TestAllTypesLite result = new TestAllTypesLite(); |
| |
| protected override TestAllTypesLite MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new TestAllTypesLite(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override TestAllTypesLite DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance; } |
| } |
| |
| public override TestAllTypesLite BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| result.repeatedInt32_.MakeReadOnly(); |
| result.repeatedInt64_.MakeReadOnly(); |
| result.repeatedUint32_.MakeReadOnly(); |
| result.repeatedUint64_.MakeReadOnly(); |
| result.repeatedSint32_.MakeReadOnly(); |
| result.repeatedSint64_.MakeReadOnly(); |
| result.repeatedFixed32_.MakeReadOnly(); |
| result.repeatedFixed64_.MakeReadOnly(); |
| result.repeatedSfixed32_.MakeReadOnly(); |
| result.repeatedSfixed64_.MakeReadOnly(); |
| result.repeatedFloat_.MakeReadOnly(); |
| result.repeatedDouble_.MakeReadOnly(); |
| result.repeatedBool_.MakeReadOnly(); |
| result.repeatedString_.MakeReadOnly(); |
| result.repeatedBytes_.MakeReadOnly(); |
| result.repeatedGroup_.MakeReadOnly(); |
| result.repeatedNestedMessage_.MakeReadOnly(); |
| result.repeatedForeignMessage_.MakeReadOnly(); |
| result.repeatedImportMessage_.MakeReadOnly(); |
| result.repeatedNestedEnum_.MakeReadOnly(); |
| result.repeatedForeignEnum_.MakeReadOnly(); |
| result.repeatedImportEnum_.MakeReadOnly(); |
| result.repeatedStringPiece_.MakeReadOnly(); |
| result.repeatedCord_.MakeReadOnly(); |
| TestAllTypesLite returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is TestAllTypesLite) { |
| return MergeFrom((TestAllTypesLite) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(TestAllTypesLite other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance) return this; |
| if (other.HasOptionalInt32) { |
| OptionalInt32 = other.OptionalInt32; |
| } |
| if (other.HasOptionalInt64) { |
| OptionalInt64 = other.OptionalInt64; |
| } |
| if (other.HasOptionalUint32) { |
| OptionalUint32 = other.OptionalUint32; |
| } |
| if (other.HasOptionalUint64) { |
| OptionalUint64 = other.OptionalUint64; |
| } |
| if (other.HasOptionalSint32) { |
| OptionalSint32 = other.OptionalSint32; |
| } |
| if (other.HasOptionalSint64) { |
| OptionalSint64 = other.OptionalSint64; |
| } |
| if (other.HasOptionalFixed32) { |
| OptionalFixed32 = other.OptionalFixed32; |
| } |
| if (other.HasOptionalFixed64) { |
| OptionalFixed64 = other.OptionalFixed64; |
| } |
| if (other.HasOptionalSfixed32) { |
| OptionalSfixed32 = other.OptionalSfixed32; |
| } |
| if (other.HasOptionalSfixed64) { |
| OptionalSfixed64 = other.OptionalSfixed64; |
| } |
| if (other.HasOptionalFloat) { |
| OptionalFloat = other.OptionalFloat; |
| } |
| if (other.HasOptionalDouble) { |
| OptionalDouble = other.OptionalDouble; |
| } |
| if (other.HasOptionalBool) { |
| OptionalBool = other.OptionalBool; |
| } |
| if (other.HasOptionalString) { |
| OptionalString = other.OptionalString; |
| } |
| if (other.HasOptionalBytes) { |
| OptionalBytes = other.OptionalBytes; |
| } |
| if (other.HasOptionalGroup) { |
| MergeOptionalGroup(other.OptionalGroup); |
| } |
| if (other.HasOptionalNestedMessage) { |
| MergeOptionalNestedMessage(other.OptionalNestedMessage); |
| } |
| if (other.HasOptionalForeignMessage) { |
| MergeOptionalForeignMessage(other.OptionalForeignMessage); |
| } |
| if (other.HasOptionalImportMessage) { |
| MergeOptionalImportMessage(other.OptionalImportMessage); |
| } |
| if (other.HasOptionalNestedEnum) { |
| OptionalNestedEnum = other.OptionalNestedEnum; |
| } |
| if (other.HasOptionalForeignEnum) { |
| OptionalForeignEnum = other.OptionalForeignEnum; |
| } |
| if (other.HasOptionalImportEnum) { |
| OptionalImportEnum = other.OptionalImportEnum; |
| } |
| if (other.HasOptionalStringPiece) { |
| OptionalStringPiece = other.OptionalStringPiece; |
| } |
| if (other.HasOptionalCord) { |
| OptionalCord = other.OptionalCord; |
| } |
| if (other.repeatedInt32_.Count != 0) { |
| base.AddRange(other.repeatedInt32_, result.repeatedInt32_); |
| } |
| if (other.repeatedInt64_.Count != 0) { |
| base.AddRange(other.repeatedInt64_, result.repeatedInt64_); |
| } |
| if (other.repeatedUint32_.Count != 0) { |
| base.AddRange(other.repeatedUint32_, result.repeatedUint32_); |
| } |
| if (other.repeatedUint64_.Count != 0) { |
| base.AddRange(other.repeatedUint64_, result.repeatedUint64_); |
| } |
| if (other.repeatedSint32_.Count != 0) { |
| base.AddRange(other.repeatedSint32_, result.repeatedSint32_); |
| } |
| if (other.repeatedSint64_.Count != 0) { |
| base.AddRange(other.repeatedSint64_, result.repeatedSint64_); |
| } |
| if (other.repeatedFixed32_.Count != 0) { |
| base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_); |
| } |
| if (other.repeatedFixed64_.Count != 0) { |
| base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_); |
| } |
| if (other.repeatedSfixed32_.Count != 0) { |
| base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_); |
| } |
| if (other.repeatedSfixed64_.Count != 0) { |
| base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_); |
| } |
| if (other.repeatedFloat_.Count != 0) { |
| base.AddRange(other.repeatedFloat_, result.repeatedFloat_); |
| } |
| if (other.repeatedDouble_.Count != 0) { |
| base.AddRange(other.repeatedDouble_, result.repeatedDouble_); |
| } |
| if (other.repeatedBool_.Count != 0) { |
| base.AddRange(other.repeatedBool_, result.repeatedBool_); |
| } |
| if (other.repeatedString_.Count != 0) { |
| base.AddRange(other.repeatedString_, result.repeatedString_); |
| } |
| if (other.repeatedBytes_.Count != 0) { |
| base.AddRange(other.repeatedBytes_, result.repeatedBytes_); |
| } |
| if (other.repeatedGroup_.Count != 0) { |
| base.AddRange(other.repeatedGroup_, result.repeatedGroup_); |
| } |
| if (other.repeatedNestedMessage_.Count != 0) { |
| base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_); |
| } |
| if (other.repeatedForeignMessage_.Count != 0) { |
| base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_); |
| } |
| if (other.repeatedImportMessage_.Count != 0) { |
| base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_); |
| } |
| if (other.repeatedNestedEnum_.Count != 0) { |
| base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_); |
| } |
| if (other.repeatedForeignEnum_.Count != 0) { |
| base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_); |
| } |
| if (other.repeatedImportEnum_.Count != 0) { |
| base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_); |
| } |
| if (other.repeatedStringPiece_.Count != 0) { |
| base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_); |
| } |
| if (other.repeatedCord_.Count != 0) { |
| base.AddRange(other.repeatedCord_, result.repeatedCord_); |
| } |
| if (other.HasDefaultInt32) { |
| DefaultInt32 = other.DefaultInt32; |
| } |
| if (other.HasDefaultInt64) { |
| DefaultInt64 = other.DefaultInt64; |
| } |
| if (other.HasDefaultUint32) { |
| DefaultUint32 = other.DefaultUint32; |
| } |
| if (other.HasDefaultUint64) { |
| DefaultUint64 = other.DefaultUint64; |
| } |
| if (other.HasDefaultSint32) { |
| DefaultSint32 = other.DefaultSint32; |
| } |
| if (other.HasDefaultSint64) { |
| DefaultSint64 = other.DefaultSint64; |
| } |
| if (other.HasDefaultFixed32) { |
| DefaultFixed32 = other.DefaultFixed32; |
| } |
| if (other.HasDefaultFixed64) { |
| DefaultFixed64 = other.DefaultFixed64; |
| } |
| if (other.HasDefaultSfixed32) { |
| DefaultSfixed32 = other.DefaultSfixed32; |
| } |
| if (other.HasDefaultSfixed64) { |
| DefaultSfixed64 = other.DefaultSfixed64; |
| } |
| if (other.HasDefaultFloat) { |
| DefaultFloat = other.DefaultFloat; |
| } |
| if (other.HasDefaultDouble) { |
| DefaultDouble = other.DefaultDouble; |
| } |
| if (other.HasDefaultBool) { |
| DefaultBool = other.DefaultBool; |
| } |
| if (other.HasDefaultString) { |
| DefaultString = other.DefaultString; |
| } |
| if (other.HasDefaultBytes) { |
| DefaultBytes = other.DefaultBytes; |
| } |
| if (other.HasDefaultNestedEnum) { |
| DefaultNestedEnum = other.DefaultNestedEnum; |
| } |
| if (other.HasDefaultForeignEnum) { |
| DefaultForeignEnum = other.DefaultForeignEnum; |
| } |
| if (other.HasDefaultImportEnum) { |
| DefaultImportEnum = other.DefaultImportEnum; |
| } |
| if (other.HasDefaultStringPiece) { |
| DefaultStringPiece = other.DefaultStringPiece; |
| } |
| if (other.HasDefaultCord) { |
| DefaultCord = other.DefaultCord; |
| } |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| case 8: { |
| OptionalInt32 = input.ReadInt32(); |
| break; |
| } |
| case 16: { |
| OptionalInt64 = input.ReadInt64(); |
| break; |
| } |
| case 24: { |
| OptionalUint32 = input.ReadUInt32(); |
| break; |
| } |
| case 32: { |
| OptionalUint64 = input.ReadUInt64(); |
| break; |
| } |
| case 40: { |
| OptionalSint32 = input.ReadSInt32(); |
| break; |
| } |
| case 48: { |
| OptionalSint64 = input.ReadSInt64(); |
| break; |
| } |
| case 61: { |
| OptionalFixed32 = input.ReadFixed32(); |
| break; |
| } |
| case 65: { |
| OptionalFixed64 = input.ReadFixed64(); |
| break; |
| } |
| case 77: { |
| OptionalSfixed32 = input.ReadSFixed32(); |
| break; |
| } |
| case 81: { |
| OptionalSfixed64 = input.ReadSFixed64(); |
| break; |
| } |
| case 93: { |
| OptionalFloat = input.ReadFloat(); |
| break; |
| } |
| case 97: { |
| OptionalDouble = input.ReadDouble(); |
| break; |
| } |
| case 104: { |
| OptionalBool = input.ReadBool(); |
| break; |
| } |
| case 114: { |
| OptionalString = input.ReadString(); |
| break; |
| } |
| case 122: { |
| OptionalBytes = input.ReadBytes(); |
| break; |
| } |
| case 131: { |
| global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder(); |
| if (HasOptionalGroup) { |
| subBuilder.MergeFrom(OptionalGroup); |
| } |
| input.ReadGroup(16, subBuilder, extensionRegistry); |
| OptionalGroup = subBuilder.BuildPartial(); |
| break; |
| } |
| case 146: { |
| global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder(); |
| if (HasOptionalNestedMessage) { |
| subBuilder.MergeFrom(OptionalNestedMessage); |
| } |
| input.ReadMessage(subBuilder, extensionRegistry); |
| OptionalNestedMessage = subBuilder.BuildPartial(); |
| break; |
| } |
| case 154: { |
| global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder(); |
| if (HasOptionalForeignMessage) { |
| subBuilder.MergeFrom(OptionalForeignMessage); |
| } |
| input.ReadMessage(subBuilder, extensionRegistry); |
| OptionalForeignMessage = subBuilder.BuildPartial(); |
| break; |
| } |
| case 162: { |
| global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder(); |
| if (HasOptionalImportMessage) { |
| subBuilder.MergeFrom(OptionalImportMessage); |
| } |
| input.ReadMessage(subBuilder, extensionRegistry); |
| OptionalImportMessage = subBuilder.BuildPartial(); |
| break; |
| } |
| case 168: { |
| int rawValue = input.ReadEnum(); |
| if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum), rawValue)) { |
| } else { |
| OptionalNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum) rawValue; |
| } |
| break; |
| } |
| case 176: { |
| int rawValue = input.ReadEnum(); |
| if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), rawValue)) { |
| } else { |
| OptionalForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite) rawValue; |
| } |
| break; |
| } |
| case 184: { |
| int rawValue = input.ReadEnum(); |
| if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite), rawValue)) { |
| } else { |
| OptionalImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnumLite) rawValue; |
| } |
| break; |
| } |
| case 194: { |
| OptionalStringPiece = input.ReadString(); |
| break; |
| } |
| case 202: { |
| OptionalCord = input.ReadString(); |
| break; |
| } |
| case 248: { |
| AddRepeatedInt32(input.ReadInt32()); |
| break; |
| } |
| case 256: { |
| AddRepeatedInt64(input.ReadInt64()); |
| break; |
| } |
| case 264: { |
| AddRepeatedUint32(input.ReadUInt32()); |
| break; |
| } |
| case 272: { |
| AddRepeatedUint64(input.ReadUInt64()); |
| break; |
| } |
| case 280: { |
| AddRepeatedSint32(input.ReadSInt32()); |
| break; |
| } |
| case 288: { |
| AddRepeatedSint64(input.ReadSInt64()); |
| break; |
| } |
| case 301: { |
| AddRepeatedFixed32(input.ReadFixed32()); |
| break; |
| } |
| case 305: { |
| AddRepeatedFixed64(input.ReadFixed64()); |
| break; |
| } |
| case 317: { |
| AddRepeatedSfixed32(input.ReadSFixed32()); |
| break; |
| } |
| case 321: { |
| AddRepeatedSfixed64(input.ReadSFixed64()); |
| break; |
| } |
| case 333: { |
| AddRepeatedFloat(input.ReadFloat()); |
| break; |
| } |
| case 337: { |
| AddRepeatedDouble(input.ReadDouble()); |
| break; |
| } |
| case 344: { |
| AddRepeatedBool(input.ReadBool()); |
| break; |
| } |
| case 354: { |
| AddRepeatedString(input.ReadString()); |
| break; |
| } |
| case 362: { |
| AddRepeatedBytes(input.ReadBytes()); |
| break; |
| } |
| case 371: { |
| global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.CreateBuilder(); |
| input.ReadGroup(46, subBuilder, extensionRegistry); |
| AddRepeatedGroup(subBuilder.BuildPartial()); |
| break; |
| } |
| case 386: { |
| global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder(); |
| input.ReadMessage(subBuilder, extensionRegistry); |
| AddRepeatedNestedMessage(subBuilder.BuildPartial()); |
| break; |
| } |
| case 394: { |
| global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder(); |
| input.ReadMessage(subBuilder, extensionRegistry); |
| AddRepeatedForeignMessage(subBuilder.BuildPartial()); |
| break; |
| } |
| case 402: { |
| global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder(); |
| input.ReadMessage(subBuilder, extensionRegistry); |
| AddRepeatedImportMessage(subBuilder.BuildPartial()); |
| break; |
| } |
| case 408: { |
| int rawValue = input.ReadEnum(); |
| if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum), rawValue)) { |
| } else { |
| AddRepeatedNestedEnum((global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum) rawValue); |
| } |
| break; |
| } |
| case 416: { |
| int rawValue = input.ReadEnum(); |
| if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), rawValue)) { |
| } else { |
| AddRepeatedForeignEnum((global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite) rawValue); |
| } |
| break; |
| } |
| case 424: { |
| int rawValue = input.ReadEnum(); |
| if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite), rawValue)) { |
| } else { |
| AddRepeatedImportEnum((global::Google.ProtocolBuffers.TestProtos.ImportEnumLite) rawValue); |
| } |
| break; |
| } |
| case 434: { |
| AddRepeatedStringPiece(input.ReadString()); |
| break; |
| } |
| case 442: { |
| AddRepeatedCord(input.ReadString()); |
| break; |
| } |
| case 488: { |
| DefaultInt32 = input.ReadInt32(); |
| break; |
| } |
| case 496: { |
| DefaultInt64 = input.ReadInt64(); |
| break; |
| } |
| case 504: { |
| DefaultUint32 = input.ReadUInt32(); |
| break; |
| } |
| case 512: { |
| DefaultUint64 = input.ReadUInt64(); |
| break; |
| } |
| case 520: { |
| DefaultSint32 = input.ReadSInt32(); |
| break; |
| } |
| case 528: { |
| DefaultSint64 = input.ReadSInt64(); |
| break; |
| } |
| case 541: { |
| DefaultFixed32 = input.ReadFixed32(); |
| break; |
| } |
| case 545: { |
| DefaultFixed64 = input.ReadFixed64(); |
| break; |
| } |
| case 557: { |
| DefaultSfixed32 = input.ReadSFixed32(); |
| break; |
| } |
| case 561: { |
| DefaultSfixed64 = input.ReadSFixed64(); |
| break; |
| } |
| case 573: { |
| DefaultFloat = input.ReadFloat(); |
| break; |
| } |
| case 577: { |
| DefaultDouble = input.ReadDouble(); |
| break; |
| } |
| case 584: { |
| DefaultBool = input.ReadBool(); |
| break; |
| } |
| case 594: { |
| DefaultString = input.ReadString(); |
| break; |
| } |
| case 602: { |
| DefaultBytes = input.ReadBytes(); |
| break; |
| } |
| case 648: { |
| int rawValue = input.ReadEnum(); |
| if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum), rawValue)) { |
| } else { |
| DefaultNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum) rawValue; |
| } |
| break; |
| } |
| case 656: { |
| int rawValue = input.ReadEnum(); |
| if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), rawValue)) { |
| } else { |
| DefaultForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite) rawValue; |
| } |
| break; |
| } |
| case 664: { |
| int rawValue = input.ReadEnum(); |
| if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite), rawValue)) { |
| } else { |
| DefaultImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnumLite) rawValue; |
| } |
| break; |
| } |
| case 674: { |
| DefaultStringPiece = input.ReadString(); |
| break; |
| } |
| case 682: { |
| DefaultCord = input.ReadString(); |
| break; |
| } |
| } |
| } |
| } |
| |
| |
| public bool HasOptionalInt32 { |
| get { return result.HasOptionalInt32; } |
| } |
| public int OptionalInt32 { |
| get { return result.OptionalInt32; } |
| set { SetOptionalInt32(value); } |
| } |
| public Builder SetOptionalInt32(int value) { |
| result.hasOptionalInt32 = true; |
| result.optionalInt32_ = value; |
| return this; |
| } |
| public Builder ClearOptionalInt32() { |
| result.hasOptionalInt32 = false; |
| result.optionalInt32_ = 0; |
| return this; |
| } |
| |
| public bool HasOptionalInt64 { |
| get { return result.HasOptionalInt64; } |
| } |
| public long OptionalInt64 { |
| get { return result.OptionalInt64; } |
| set { SetOptionalInt64(value); } |
| } |
| public Builder SetOptionalInt64(long value) { |
| result.hasOptionalInt64 = true; |
| result.optionalInt64_ = value; |
| return this; |
| } |
| public Builder ClearOptionalInt64() { |
| result.hasOptionalInt64 = false; |
| result.optionalInt64_ = 0L; |
| return this; |
| } |
| |
| public bool HasOptionalUint32 { |
| get { return result.HasOptionalUint32; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint OptionalUint32 { |
| get { return result.OptionalUint32; } |
| set { SetOptionalUint32(value); } |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetOptionalUint32(uint value) { |
| result.hasOptionalUint32 = true; |
| result.optionalUint32_ = value; |
| return this; |
| } |
| public Builder ClearOptionalUint32() { |
| result.hasOptionalUint32 = false; |
| result.optionalUint32_ = 0; |
| return this; |
| } |
| |
| public bool HasOptionalUint64 { |
| get { return result.HasOptionalUint64; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong OptionalUint64 { |
| get { return result.OptionalUint64; } |
| set { SetOptionalUint64(value); } |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetOptionalUint64(ulong value) { |
| result.hasOptionalUint64 = true; |
| result.optionalUint64_ = value; |
| return this; |
| } |
| public Builder ClearOptionalUint64() { |
| result.hasOptionalUint64 = false; |
| result.optionalUint64_ = 0UL; |
| return this; |
| } |
| |
| public bool HasOptionalSint32 { |
| get { return result.HasOptionalSint32; } |
| } |
| public int OptionalSint32 { |
| get { return result.OptionalSint32; } |
| set { SetOptionalSint32(value); } |
| } |
| public Builder SetOptionalSint32(int value) { |
| result.hasOptionalSint32 = true; |
| result.optionalSint32_ = value; |
| return this; |
| } |
| public Builder ClearOptionalSint32() { |
| result.hasOptionalSint32 = false; |
| result.optionalSint32_ = 0; |
| return this; |
| } |
| |
| public bool HasOptionalSint64 { |
| get { return result.HasOptionalSint64; } |
| } |
| public long OptionalSint64 { |
| get { return result.OptionalSint64; } |
| set { SetOptionalSint64(value); } |
| } |
| public Builder SetOptionalSint64(long value) { |
| result.hasOptionalSint64 = true; |
| result.optionalSint64_ = value; |
| return this; |
| } |
| public Builder ClearOptionalSint64() { |
| result.hasOptionalSint64 = false; |
| result.optionalSint64_ = 0; |
| return this; |
| } |
| |
| public bool HasOptionalFixed32 { |
| get { return result.HasOptionalFixed32; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint OptionalFixed32 { |
| get { return result.OptionalFixed32; } |
| set { SetOptionalFixed32(value); } |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetOptionalFixed32(uint value) { |
| result.hasOptionalFixed32 = true; |
| result.optionalFixed32_ = value; |
| return this; |
| } |
| public Builder ClearOptionalFixed32() { |
| result.hasOptionalFixed32 = false; |
| result.optionalFixed32_ = 0; |
| return this; |
| } |
| |
| public bool HasOptionalFixed64 { |
| get { return result.HasOptionalFixed64; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong OptionalFixed64 { |
| get { return result.OptionalFixed64; } |
| set { SetOptionalFixed64(value); } |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetOptionalFixed64(ulong value) { |
| result.hasOptionalFixed64 = true; |
| result.optionalFixed64_ = value; |
| return this; |
| } |
| public Builder ClearOptionalFixed64() { |
| result.hasOptionalFixed64 = false; |
| result.optionalFixed64_ = 0; |
| return this; |
| } |
| |
| public bool HasOptionalSfixed32 { |
| get { return result.HasOptionalSfixed32; } |
| } |
| public int OptionalSfixed32 { |
| get { return result.OptionalSfixed32; } |
| set { SetOptionalSfixed32(value); } |
| } |
| public Builder SetOptionalSfixed32(int value) { |
| result.hasOptionalSfixed32 = true; |
| result.optionalSfixed32_ = value; |
| return this; |
| } |
| public Builder ClearOptionalSfixed32() { |
| result.hasOptionalSfixed32 = false; |
| result.optionalSfixed32_ = 0; |
| return this; |
| } |
| |
| public bool HasOptionalSfixed64 { |
| get { return result.HasOptionalSfixed64; } |
| } |
| public long OptionalSfixed64 { |
| get { return result.OptionalSfixed64; } |
| set { SetOptionalSfixed64(value); } |
| } |
| public Builder SetOptionalSfixed64(long value) { |
| result.hasOptionalSfixed64 = true; |
| result.optionalSfixed64_ = value; |
| return this; |
| } |
| public Builder ClearOptionalSfixed64() { |
| result.hasOptionalSfixed64 = false; |
| result.optionalSfixed64_ = 0; |
| return this; |
| } |
| |
| public bool HasOptionalFloat { |
| get { return result.HasOptionalFloat; } |
| } |
| public float OptionalFloat { |
| get { return result.OptionalFloat; } |
| set { SetOptionalFloat(value); } |
| } |
| public Builder SetOptionalFloat(float value) { |
| result.hasOptionalFloat = true; |
| result.optionalFloat_ = value; |
| return this; |
| } |
| public Builder ClearOptionalFloat() { |
| result.hasOptionalFloat = false; |
| result.optionalFloat_ = 0F; |
| return this; |
| } |
| |
| public bool HasOptionalDouble { |
| get { return result.HasOptionalDouble; } |
| } |
| public double OptionalDouble { |
| get { return result.OptionalDouble; } |
| set { SetOptionalDouble(value); } |
| } |
| public Builder SetOptionalDouble(double value) { |
| result.hasOptionalDouble = true; |
| result.optionalDouble_ = value; |
| return this; |
| } |
| public Builder ClearOptionalDouble() { |
| result.hasOptionalDouble = false; |
| result.optionalDouble_ = 0D; |
| return this; |
| } |
| |
| public bool HasOptionalBool { |
| get { return result.HasOptionalBool; } |
| } |
| public bool OptionalBool { |
| get { return result.OptionalBool; } |
| set { SetOptionalBool(value); } |
| } |
| public Builder SetOptionalBool(bool value) { |
| result.hasOptionalBool = true; |
| result.optionalBool_ = value; |
| return this; |
| } |
| public Builder ClearOptionalBool() { |
| result.hasOptionalBool = false; |
| result.optionalBool_ = false; |
| return this; |
| } |
| |
| public bool HasOptionalString { |
| get { return result.HasOptionalString; } |
| } |
| public string OptionalString { |
| get { return result.OptionalString; } |
| set { SetOptionalString(value); } |
| } |
| public Builder SetOptionalString(string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasOptionalString = true; |
| result.optionalString_ = value; |
| return this; |
| } |
| public Builder ClearOptionalString() { |
| result.hasOptionalString = false; |
| result.optionalString_ = ""; |
| return this; |
| } |
| |
| public bool HasOptionalBytes { |
| get { return result.HasOptionalBytes; } |
| } |
| public pb::ByteString OptionalBytes { |
| get { return result.OptionalBytes; } |
| set { SetOptionalBytes(value); } |
| } |
| public Builder SetOptionalBytes(pb::ByteString value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasOptionalBytes = true; |
| result.optionalBytes_ = value; |
| return this; |
| } |
| public Builder ClearOptionalBytes() { |
| result.hasOptionalBytes = false; |
| result.optionalBytes_ = pb::ByteString.Empty; |
| return this; |
| } |
| |
| public bool HasOptionalGroup { |
| get { return result.HasOptionalGroup; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup { |
| get { return result.OptionalGroup; } |
| set { SetOptionalGroup(value); } |
| } |
| public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasOptionalGroup = true; |
| result.optionalGroup_ = value; |
| return this; |
| } |
| public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.hasOptionalGroup = true; |
| result.optionalGroup_ = builderForValue.Build(); |
| return this; |
| } |
| public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| if (result.HasOptionalGroup && |
| result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) { |
| result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial(); |
| } else { |
| result.optionalGroup_ = value; |
| } |
| result.hasOptionalGroup = true; |
| return this; |
| } |
| public Builder ClearOptionalGroup() { |
| result.hasOptionalGroup = false; |
| result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; |
| return this; |
| } |
| |
| public bool HasOptionalNestedMessage { |
| get { return result.HasOptionalNestedMessage; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage { |
| get { return result.OptionalNestedMessage; } |
| set { SetOptionalNestedMessage(value); } |
| } |
| public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasOptionalNestedMessage = true; |
| result.optionalNestedMessage_ = value; |
| return this; |
| } |
| public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.hasOptionalNestedMessage = true; |
| result.optionalNestedMessage_ = builderForValue.Build(); |
| return this; |
| } |
| public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| if (result.HasOptionalNestedMessage && |
| result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) { |
| result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial(); |
| } else { |
| result.optionalNestedMessage_ = value; |
| } |
| result.hasOptionalNestedMessage = true; |
| return this; |
| } |
| public Builder ClearOptionalNestedMessage() { |
| result.hasOptionalNestedMessage = false; |
| result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; |
| return this; |
| } |
| |
| public bool HasOptionalForeignMessage { |
| get { return result.HasOptionalForeignMessage; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage { |
| get { return result.OptionalForeignMessage; } |
| set { SetOptionalForeignMessage(value); } |
| } |
| public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasOptionalForeignMessage = true; |
| result.optionalForeignMessage_ = value; |
| return this; |
| } |
| public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.hasOptionalForeignMessage = true; |
| result.optionalForeignMessage_ = builderForValue.Build(); |
| return this; |
| } |
| public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| if (result.HasOptionalForeignMessage && |
| result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) { |
| result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial(); |
| } else { |
| result.optionalForeignMessage_ = value; |
| } |
| result.hasOptionalForeignMessage = true; |
| return this; |
| } |
| public Builder ClearOptionalForeignMessage() { |
| result.hasOptionalForeignMessage = false; |
| result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; |
| return this; |
| } |
| |
| public bool HasOptionalImportMessage { |
| get { return result.HasOptionalImportMessage; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage { |
| get { return result.OptionalImportMessage; } |
| set { SetOptionalImportMessage(value); } |
| } |
| public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasOptionalImportMessage = true; |
| result.optionalImportMessage_ = value; |
| return this; |
| } |
| public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.hasOptionalImportMessage = true; |
| result.optionalImportMessage_ = builderForValue.Build(); |
| return this; |
| } |
| public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| if (result.HasOptionalImportMessage && |
| result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance) { |
| result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial(); |
| } else { |
| result.optionalImportMessage_ = value; |
| } |
| result.hasOptionalImportMessage = true; |
| return this; |
| } |
| public Builder ClearOptionalImportMessage() { |
| result.hasOptionalImportMessage = false; |
| result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance; |
| return this; |
| } |
| |
| public bool HasOptionalNestedEnum { |
| get { return result.HasOptionalNestedEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum { |
| get { return result.OptionalNestedEnum; } |
| set { SetOptionalNestedEnum(value); } |
| } |
| public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) { |
| result.hasOptionalNestedEnum = true; |
| result.optionalNestedEnum_ = value; |
| return this; |
| } |
| public Builder ClearOptionalNestedEnum() { |
| result.hasOptionalNestedEnum = false; |
| result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO; |
| return this; |
| } |
| |
| public bool HasOptionalForeignEnum { |
| get { return result.HasOptionalForeignEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum { |
| get { return result.OptionalForeignEnum; } |
| set { SetOptionalForeignEnum(value); } |
| } |
| public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| result.hasOptionalForeignEnum = true; |
| result.optionalForeignEnum_ = value; |
| return this; |
| } |
| public Builder ClearOptionalForeignEnum() { |
| result.hasOptionalForeignEnum = false; |
| result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO; |
| return this; |
| } |
| |
| public bool HasOptionalImportEnum { |
| get { return result.HasOptionalImportEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum { |
| get { return result.OptionalImportEnum; } |
| set { SetOptionalImportEnum(value); } |
| } |
| public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) { |
| result.hasOptionalImportEnum = true; |
| result.optionalImportEnum_ = value; |
| return this; |
| } |
| public Builder ClearOptionalImportEnum() { |
| result.hasOptionalImportEnum = false; |
| result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO; |
| return this; |
| } |
| |
| public bool HasOptionalStringPiece { |
| get { return result.HasOptionalStringPiece; } |
| } |
| public string OptionalStringPiece { |
| get { return result.OptionalStringPiece; } |
| set { SetOptionalStringPiece(value); } |
| } |
| public Builder SetOptionalStringPiece(string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasOptionalStringPiece = true; |
| result.optionalStringPiece_ = value; |
| return this; |
| } |
| public Builder ClearOptionalStringPiece() { |
| result.hasOptionalStringPiece = false; |
| result.optionalStringPiece_ = ""; |
| return this; |
| } |
| |
| public bool HasOptionalCord { |
| get { return result.HasOptionalCord; } |
| } |
| public string OptionalCord { |
| get { return result.OptionalCord; } |
| set { SetOptionalCord(value); } |
| } |
| public Builder SetOptionalCord(string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasOptionalCord = true; |
| result.optionalCord_ = value; |
| return this; |
| } |
| public Builder ClearOptionalCord() { |
| result.hasOptionalCord = false; |
| result.optionalCord_ = ""; |
| return this; |
| } |
| |
| public pbc::IPopsicleList<int> RepeatedInt32List { |
| get { return result.repeatedInt32_; } |
| } |
| public int RepeatedInt32Count { |
| get { return result.RepeatedInt32Count; } |
| } |
| public int GetRepeatedInt32(int index) { |
| return result.GetRepeatedInt32(index); |
| } |
| public Builder SetRepeatedInt32(int index, int value) { |
| result.repeatedInt32_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedInt32(int value) { |
| result.repeatedInt32_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) { |
| base.AddRange(values, result.repeatedInt32_); |
| return this; |
| } |
| public Builder ClearRepeatedInt32() { |
| result.repeatedInt32_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<long> RepeatedInt64List { |
| get { return result.repeatedInt64_; } |
| } |
| public int RepeatedInt64Count { |
| get { return result.RepeatedInt64Count; } |
| } |
| public long GetRepeatedInt64(int index) { |
| return result.GetRepeatedInt64(index); |
| } |
| public Builder SetRepeatedInt64(int index, long value) { |
| result.repeatedInt64_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedInt64(long value) { |
| result.repeatedInt64_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) { |
| base.AddRange(values, result.repeatedInt64_); |
| return this; |
| } |
| public Builder ClearRepeatedInt64() { |
| result.repeatedInt64_.Clear(); |
| return this; |
| } |
| |
| [global::System.CLSCompliant(false)] |
| public pbc::IPopsicleList<uint> RepeatedUint32List { |
| get { return result.repeatedUint32_; } |
| } |
| public int RepeatedUint32Count { |
| get { return result.RepeatedUint32Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint GetRepeatedUint32(int index) { |
| return result.GetRepeatedUint32(index); |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetRepeatedUint32(int index, uint value) { |
| result.repeatedUint32_[index] = value; |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRepeatedUint32(uint value) { |
| result.repeatedUint32_.Add(value); |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) { |
| base.AddRange(values, result.repeatedUint32_); |
| return this; |
| } |
| public Builder ClearRepeatedUint32() { |
| result.repeatedUint32_.Clear(); |
| return this; |
| } |
| |
| [global::System.CLSCompliant(false)] |
| public pbc::IPopsicleList<ulong> RepeatedUint64List { |
| get { return result.repeatedUint64_; } |
| } |
| public int RepeatedUint64Count { |
| get { return result.RepeatedUint64Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong GetRepeatedUint64(int index) { |
| return result.GetRepeatedUint64(index); |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetRepeatedUint64(int index, ulong value) { |
| result.repeatedUint64_[index] = value; |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRepeatedUint64(ulong value) { |
| result.repeatedUint64_.Add(value); |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) { |
| base.AddRange(values, result.repeatedUint64_); |
| return this; |
| } |
| public Builder ClearRepeatedUint64() { |
| result.repeatedUint64_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<int> RepeatedSint32List { |
| get { return result.repeatedSint32_; } |
| } |
| public int RepeatedSint32Count { |
| get { return result.RepeatedSint32Count; } |
| } |
| public int GetRepeatedSint32(int index) { |
| return result.GetRepeatedSint32(index); |
| } |
| public Builder SetRepeatedSint32(int index, int value) { |
| result.repeatedSint32_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedSint32(int value) { |
| result.repeatedSint32_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) { |
| base.AddRange(values, result.repeatedSint32_); |
| return this; |
| } |
| public Builder ClearRepeatedSint32() { |
| result.repeatedSint32_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<long> RepeatedSint64List { |
| get { return result.repeatedSint64_; } |
| } |
| public int RepeatedSint64Count { |
| get { return result.RepeatedSint64Count; } |
| } |
| public long GetRepeatedSint64(int index) { |
| return result.GetRepeatedSint64(index); |
| } |
| public Builder SetRepeatedSint64(int index, long value) { |
| result.repeatedSint64_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedSint64(long value) { |
| result.repeatedSint64_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) { |
| base.AddRange(values, result.repeatedSint64_); |
| return this; |
| } |
| public Builder ClearRepeatedSint64() { |
| result.repeatedSint64_.Clear(); |
| return this; |
| } |
| |
| [global::System.CLSCompliant(false)] |
| public pbc::IPopsicleList<uint> RepeatedFixed32List { |
| get { return result.repeatedFixed32_; } |
| } |
| public int RepeatedFixed32Count { |
| get { return result.RepeatedFixed32Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint GetRepeatedFixed32(int index) { |
| return result.GetRepeatedFixed32(index); |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetRepeatedFixed32(int index, uint value) { |
| result.repeatedFixed32_[index] = value; |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRepeatedFixed32(uint value) { |
| result.repeatedFixed32_.Add(value); |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) { |
| base.AddRange(values, result.repeatedFixed32_); |
| return this; |
| } |
| public Builder ClearRepeatedFixed32() { |
| result.repeatedFixed32_.Clear(); |
| return this; |
| } |
| |
| [global::System.CLSCompliant(false)] |
| public pbc::IPopsicleList<ulong> RepeatedFixed64List { |
| get { return result.repeatedFixed64_; } |
| } |
| public int RepeatedFixed64Count { |
| get { return result.RepeatedFixed64Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong GetRepeatedFixed64(int index) { |
| return result.GetRepeatedFixed64(index); |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetRepeatedFixed64(int index, ulong value) { |
| result.repeatedFixed64_[index] = value; |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRepeatedFixed64(ulong value) { |
| result.repeatedFixed64_.Add(value); |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) { |
| base.AddRange(values, result.repeatedFixed64_); |
| return this; |
| } |
| public Builder ClearRepeatedFixed64() { |
| result.repeatedFixed64_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<int> RepeatedSfixed32List { |
| get { return result.repeatedSfixed32_; } |
| } |
| public int RepeatedSfixed32Count { |
| get { return result.RepeatedSfixed32Count; } |
| } |
| public int GetRepeatedSfixed32(int index) { |
| return result.GetRepeatedSfixed32(index); |
| } |
| public Builder SetRepeatedSfixed32(int index, int value) { |
| result.repeatedSfixed32_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedSfixed32(int value) { |
| result.repeatedSfixed32_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) { |
| base.AddRange(values, result.repeatedSfixed32_); |
| return this; |
| } |
| public Builder ClearRepeatedSfixed32() { |
| result.repeatedSfixed32_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<long> RepeatedSfixed64List { |
| get { return result.repeatedSfixed64_; } |
| } |
| public int RepeatedSfixed64Count { |
| get { return result.RepeatedSfixed64Count; } |
| } |
| public long GetRepeatedSfixed64(int index) { |
| return result.GetRepeatedSfixed64(index); |
| } |
| public Builder SetRepeatedSfixed64(int index, long value) { |
| result.repeatedSfixed64_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedSfixed64(long value) { |
| result.repeatedSfixed64_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) { |
| base.AddRange(values, result.repeatedSfixed64_); |
| return this; |
| } |
| public Builder ClearRepeatedSfixed64() { |
| result.repeatedSfixed64_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<float> RepeatedFloatList { |
| get { return result.repeatedFloat_; } |
| } |
| public int RepeatedFloatCount { |
| get { return result.RepeatedFloatCount; } |
| } |
| public float GetRepeatedFloat(int index) { |
| return result.GetRepeatedFloat(index); |
| } |
| public Builder SetRepeatedFloat(int index, float value) { |
| result.repeatedFloat_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedFloat(float value) { |
| result.repeatedFloat_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) { |
| base.AddRange(values, result.repeatedFloat_); |
| return this; |
| } |
| public Builder ClearRepeatedFloat() { |
| result.repeatedFloat_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<double> RepeatedDoubleList { |
| get { return result.repeatedDouble_; } |
| } |
| public int RepeatedDoubleCount { |
| get { return result.RepeatedDoubleCount; } |
| } |
| public double GetRepeatedDouble(int index) { |
| return result.GetRepeatedDouble(index); |
| } |
| public Builder SetRepeatedDouble(int index, double value) { |
| result.repeatedDouble_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedDouble(double value) { |
| result.repeatedDouble_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) { |
| base.AddRange(values, result.repeatedDouble_); |
| return this; |
| } |
| public Builder ClearRepeatedDouble() { |
| result.repeatedDouble_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<bool> RepeatedBoolList { |
| get { return result.repeatedBool_; } |
| } |
| public int RepeatedBoolCount { |
| get { return result.RepeatedBoolCount; } |
| } |
| public bool GetRepeatedBool(int index) { |
| return result.GetRepeatedBool(index); |
| } |
| public Builder SetRepeatedBool(int index, bool value) { |
| result.repeatedBool_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedBool(bool value) { |
| result.repeatedBool_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) { |
| base.AddRange(values, result.repeatedBool_); |
| return this; |
| } |
| public Builder ClearRepeatedBool() { |
| result.repeatedBool_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<string> RepeatedStringList { |
| get { return result.repeatedString_; } |
| } |
| public int RepeatedStringCount { |
| get { return result.RepeatedStringCount; } |
| } |
| public string GetRepeatedString(int index) { |
| return result.GetRepeatedString(index); |
| } |
| public Builder SetRepeatedString(int index, string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedString_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedString(string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedString_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) { |
| base.AddRange(values, result.repeatedString_); |
| return this; |
| } |
| public Builder ClearRepeatedString() { |
| result.repeatedString_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<pb::ByteString> RepeatedBytesList { |
| get { return result.repeatedBytes_; } |
| } |
| public int RepeatedBytesCount { |
| get { return result.RepeatedBytesCount; } |
| } |
| public pb::ByteString GetRepeatedBytes(int index) { |
| return result.GetRepeatedBytes(index); |
| } |
| public Builder SetRepeatedBytes(int index, pb::ByteString value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedBytes_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedBytes(pb::ByteString value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedBytes_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) { |
| base.AddRange(values, result.repeatedBytes_); |
| return this; |
| } |
| public Builder ClearRepeatedBytes() { |
| result.repeatedBytes_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList { |
| get { return result.repeatedGroup_; } |
| } |
| public int RepeatedGroupCount { |
| get { return result.RepeatedGroupCount; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) { |
| return result.GetRepeatedGroup(index); |
| } |
| public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedGroup_[index] = value; |
| return this; |
| } |
| public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.repeatedGroup_[index] = builderForValue.Build(); |
| return this; |
| } |
| public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedGroup_.Add(value); |
| return this; |
| } |
| public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.repeatedGroup_.Add(builderForValue.Build()); |
| return this; |
| } |
| public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> values) { |
| base.AddRange(values, result.repeatedGroup_); |
| return this; |
| } |
| public Builder ClearRepeatedGroup() { |
| result.repeatedGroup_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList { |
| get { return result.repeatedNestedMessage_; } |
| } |
| public int RepeatedNestedMessageCount { |
| get { return result.RepeatedNestedMessageCount; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) { |
| return result.GetRepeatedNestedMessage(index); |
| } |
| public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedNestedMessage_[index] = value; |
| return this; |
| } |
| public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.repeatedNestedMessage_[index] = builderForValue.Build(); |
| return this; |
| } |
| public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedNestedMessage_.Add(value); |
| return this; |
| } |
| public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.repeatedNestedMessage_.Add(builderForValue.Build()); |
| return this; |
| } |
| public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> values) { |
| base.AddRange(values, result.repeatedNestedMessage_); |
| return this; |
| } |
| public Builder ClearRepeatedNestedMessage() { |
| result.repeatedNestedMessage_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList { |
| get { return result.repeatedForeignMessage_; } |
| } |
| public int RepeatedForeignMessageCount { |
| get { return result.RepeatedForeignMessageCount; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) { |
| return result.GetRepeatedForeignMessage(index); |
| } |
| public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedForeignMessage_[index] = value; |
| return this; |
| } |
| public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.repeatedForeignMessage_[index] = builderForValue.Build(); |
| return this; |
| } |
| public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedForeignMessage_.Add(value); |
| return this; |
| } |
| public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.repeatedForeignMessage_.Add(builderForValue.Build()); |
| return this; |
| } |
| public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> values) { |
| base.AddRange(values, result.repeatedForeignMessage_); |
| return this; |
| } |
| public Builder ClearRepeatedForeignMessage() { |
| result.repeatedForeignMessage_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList { |
| get { return result.repeatedImportMessage_; } |
| } |
| public int RepeatedImportMessageCount { |
| get { return result.RepeatedImportMessageCount; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) { |
| return result.GetRepeatedImportMessage(index); |
| } |
| public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedImportMessage_[index] = value; |
| return this; |
| } |
| public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.repeatedImportMessage_[index] = builderForValue.Build(); |
| return this; |
| } |
| public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedImportMessage_.Add(value); |
| return this; |
| } |
| public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) { |
| pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| result.repeatedImportMessage_.Add(builderForValue.Build()); |
| return this; |
| } |
| public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> values) { |
| base.AddRange(values, result.repeatedImportMessage_); |
| return this; |
| } |
| public Builder ClearRepeatedImportMessage() { |
| result.repeatedImportMessage_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList { |
| get { return result.repeatedNestedEnum_; } |
| } |
| public int RepeatedNestedEnumCount { |
| get { return result.RepeatedNestedEnumCount; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) { |
| return result.GetRepeatedNestedEnum(index); |
| } |
| public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) { |
| result.repeatedNestedEnum_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) { |
| result.repeatedNestedEnum_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> values) { |
| base.AddRange(values, result.repeatedNestedEnum_); |
| return this; |
| } |
| public Builder ClearRepeatedNestedEnum() { |
| result.repeatedNestedEnum_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList { |
| get { return result.repeatedForeignEnum_; } |
| } |
| public int RepeatedForeignEnumCount { |
| get { return result.RepeatedForeignEnumCount; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) { |
| return result.GetRepeatedForeignEnum(index); |
| } |
| public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| result.repeatedForeignEnum_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| result.repeatedForeignEnum_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) { |
| base.AddRange(values, result.repeatedForeignEnum_); |
| return this; |
| } |
| public Builder ClearRepeatedForeignEnum() { |
| result.repeatedForeignEnum_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList { |
| get { return result.repeatedImportEnum_; } |
| } |
| public int RepeatedImportEnumCount { |
| get { return result.RepeatedImportEnumCount; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) { |
| return result.GetRepeatedImportEnum(index); |
| } |
| public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) { |
| result.repeatedImportEnum_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) { |
| result.repeatedImportEnum_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> values) { |
| base.AddRange(values, result.repeatedImportEnum_); |
| return this; |
| } |
| public Builder ClearRepeatedImportEnum() { |
| result.repeatedImportEnum_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<string> RepeatedStringPieceList { |
| get { return result.repeatedStringPiece_; } |
| } |
| public int RepeatedStringPieceCount { |
| get { return result.RepeatedStringPieceCount; } |
| } |
| public string GetRepeatedStringPiece(int index) { |
| return result.GetRepeatedStringPiece(index); |
| } |
| public Builder SetRepeatedStringPiece(int index, string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedStringPiece_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedStringPiece(string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedStringPiece_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) { |
| base.AddRange(values, result.repeatedStringPiece_); |
| return this; |
| } |
| public Builder ClearRepeatedStringPiece() { |
| result.repeatedStringPiece_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<string> RepeatedCordList { |
| get { return result.repeatedCord_; } |
| } |
| public int RepeatedCordCount { |
| get { return result.RepeatedCordCount; } |
| } |
| public string GetRepeatedCord(int index) { |
| return result.GetRepeatedCord(index); |
| } |
| public Builder SetRepeatedCord(int index, string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedCord_[index] = value; |
| return this; |
| } |
| public Builder AddRepeatedCord(string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.repeatedCord_.Add(value); |
| return this; |
| } |
| public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) { |
| base.AddRange(values, result.repeatedCord_); |
| return this; |
| } |
| public Builder ClearRepeatedCord() { |
| result.repeatedCord_.Clear(); |
| return this; |
| } |
| |
| public bool HasDefaultInt32 { |
| get { return result.HasDefaultInt32; } |
| } |
| public int DefaultInt32 { |
| get { return result.DefaultInt32; } |
| set { SetDefaultInt32(value); } |
| } |
| public Builder SetDefaultInt32(int value) { |
| result.hasDefaultInt32 = true; |
| result.defaultInt32_ = value; |
| return this; |
| } |
| public Builder ClearDefaultInt32() { |
| result.hasDefaultInt32 = false; |
| result.defaultInt32_ = 41; |
| return this; |
| } |
| |
| public bool HasDefaultInt64 { |
| get { return result.HasDefaultInt64; } |
| } |
| public long DefaultInt64 { |
| get { return result.DefaultInt64; } |
| set { SetDefaultInt64(value); } |
| } |
| public Builder SetDefaultInt64(long value) { |
| result.hasDefaultInt64 = true; |
| result.defaultInt64_ = value; |
| return this; |
| } |
| public Builder ClearDefaultInt64() { |
| result.hasDefaultInt64 = false; |
| result.defaultInt64_ = 42L; |
| return this; |
| } |
| |
| public bool HasDefaultUint32 { |
| get { return result.HasDefaultUint32; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint DefaultUint32 { |
| get { return result.DefaultUint32; } |
| set { SetDefaultUint32(value); } |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetDefaultUint32(uint value) { |
| result.hasDefaultUint32 = true; |
| result.defaultUint32_ = value; |
| return this; |
| } |
| public Builder ClearDefaultUint32() { |
| result.hasDefaultUint32 = false; |
| result.defaultUint32_ = 43; |
| return this; |
| } |
| |
| public bool HasDefaultUint64 { |
| get { return result.HasDefaultUint64; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong DefaultUint64 { |
| get { return result.DefaultUint64; } |
| set { SetDefaultUint64(value); } |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetDefaultUint64(ulong value) { |
| result.hasDefaultUint64 = true; |
| result.defaultUint64_ = value; |
| return this; |
| } |
| public Builder ClearDefaultUint64() { |
| result.hasDefaultUint64 = false; |
| result.defaultUint64_ = 44UL; |
| return this; |
| } |
| |
| public bool HasDefaultSint32 { |
| get { return result.HasDefaultSint32; } |
| } |
| public int DefaultSint32 { |
| get { return result.DefaultSint32; } |
| set { SetDefaultSint32(value); } |
| } |
| public Builder SetDefaultSint32(int value) { |
| result.hasDefaultSint32 = true; |
| result.defaultSint32_ = value; |
| return this; |
| } |
| public Builder ClearDefaultSint32() { |
| result.hasDefaultSint32 = false; |
| result.defaultSint32_ = -45; |
| return this; |
| } |
| |
| public bool HasDefaultSint64 { |
| get { return result.HasDefaultSint64; } |
| } |
| public long DefaultSint64 { |
| get { return result.DefaultSint64; } |
| set { SetDefaultSint64(value); } |
| } |
| public Builder SetDefaultSint64(long value) { |
| result.hasDefaultSint64 = true; |
| result.defaultSint64_ = value; |
| return this; |
| } |
| public Builder ClearDefaultSint64() { |
| result.hasDefaultSint64 = false; |
| result.defaultSint64_ = 46; |
| return this; |
| } |
| |
| public bool HasDefaultFixed32 { |
| get { return result.HasDefaultFixed32; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint DefaultFixed32 { |
| get { return result.DefaultFixed32; } |
| set { SetDefaultFixed32(value); } |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetDefaultFixed32(uint value) { |
| result.hasDefaultFixed32 = true; |
| result.defaultFixed32_ = value; |
| return this; |
| } |
| public Builder ClearDefaultFixed32() { |
| result.hasDefaultFixed32 = false; |
| result.defaultFixed32_ = 47; |
| return this; |
| } |
| |
| public bool HasDefaultFixed64 { |
| get { return result.HasDefaultFixed64; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong DefaultFixed64 { |
| get { return result.DefaultFixed64; } |
| set { SetDefaultFixed64(value); } |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetDefaultFixed64(ulong value) { |
| result.hasDefaultFixed64 = true; |
| result.defaultFixed64_ = value; |
| return this; |
| } |
| public Builder ClearDefaultFixed64() { |
| result.hasDefaultFixed64 = false; |
| result.defaultFixed64_ = 48; |
| return this; |
| } |
| |
| public bool HasDefaultSfixed32 { |
| get { return result.HasDefaultSfixed32; } |
| } |
| public int DefaultSfixed32 { |
| get { return result.DefaultSfixed32; } |
| set { SetDefaultSfixed32(value); } |
| } |
| public Builder SetDefaultSfixed32(int value) { |
| result.hasDefaultSfixed32 = true; |
| result.defaultSfixed32_ = value; |
| return this; |
| } |
| public Builder ClearDefaultSfixed32() { |
| result.hasDefaultSfixed32 = false; |
| result.defaultSfixed32_ = 49; |
| return this; |
| } |
| |
| public bool HasDefaultSfixed64 { |
| get { return result.HasDefaultSfixed64; } |
| } |
| public long DefaultSfixed64 { |
| get { return result.DefaultSfixed64; } |
| set { SetDefaultSfixed64(value); } |
| } |
| public Builder SetDefaultSfixed64(long value) { |
| result.hasDefaultSfixed64 = true; |
| result.defaultSfixed64_ = value; |
| return this; |
| } |
| public Builder ClearDefaultSfixed64() { |
| result.hasDefaultSfixed64 = false; |
| result.defaultSfixed64_ = -50; |
| return this; |
| } |
| |
| public bool HasDefaultFloat { |
| get { return result.HasDefaultFloat; } |
| } |
| public float DefaultFloat { |
| get { return result.DefaultFloat; } |
| set { SetDefaultFloat(value); } |
| } |
| public Builder SetDefaultFloat(float value) { |
| result.hasDefaultFloat = true; |
| result.defaultFloat_ = value; |
| return this; |
| } |
| public Builder ClearDefaultFloat() { |
| result.hasDefaultFloat = false; |
| result.defaultFloat_ = 51.5F; |
| return this; |
| } |
| |
| public bool HasDefaultDouble { |
| get { return result.HasDefaultDouble; } |
| } |
| public double DefaultDouble { |
| get { return result.DefaultDouble; } |
| set { SetDefaultDouble(value); } |
| } |
| public Builder SetDefaultDouble(double value) { |
| result.hasDefaultDouble = true; |
| result.defaultDouble_ = value; |
| return this; |
| } |
| public Builder ClearDefaultDouble() { |
| result.hasDefaultDouble = false; |
| result.defaultDouble_ = 52000D; |
| return this; |
| } |
| |
| public bool HasDefaultBool { |
| get { return result.HasDefaultBool; } |
| } |
| public bool DefaultBool { |
| get { return result.DefaultBool; } |
| set { SetDefaultBool(value); } |
| } |
| public Builder SetDefaultBool(bool value) { |
| result.hasDefaultBool = true; |
| result.defaultBool_ = value; |
| return this; |
| } |
| public Builder ClearDefaultBool() { |
| result.hasDefaultBool = false; |
| result.defaultBool_ = true; |
| return this; |
| } |
| |
| public bool HasDefaultString { |
| get { return result.HasDefaultString; } |
| } |
| public string DefaultString { |
| get { return result.DefaultString; } |
| set { SetDefaultString(value); } |
| } |
| public Builder SetDefaultString(string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasDefaultString = true; |
| result.defaultString_ = value; |
| return this; |
| } |
| public Builder ClearDefaultString() { |
| result.hasDefaultString = false; |
| result.defaultString_ = "hello"; |
| return this; |
| } |
| |
| public bool HasDefaultBytes { |
| get { return result.HasDefaultBytes; } |
| } |
| public pb::ByteString DefaultBytes { |
| get { return result.DefaultBytes; } |
| set { SetDefaultBytes(value); } |
| } |
| public Builder SetDefaultBytes(pb::ByteString value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasDefaultBytes = true; |
| result.defaultBytes_ = value; |
| return this; |
| } |
| public Builder ClearDefaultBytes() { |
| result.hasDefaultBytes = false; |
| result.defaultBytes_ = ByteString.FromBase64("d29ybGQ="); |
| return this; |
| } |
| |
| public bool HasDefaultNestedEnum { |
| get { return result.HasDefaultNestedEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum { |
| get { return result.DefaultNestedEnum; } |
| set { SetDefaultNestedEnum(value); } |
| } |
| public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) { |
| result.hasDefaultNestedEnum = true; |
| result.defaultNestedEnum_ = value; |
| return this; |
| } |
| public Builder ClearDefaultNestedEnum() { |
| result.hasDefaultNestedEnum = false; |
| result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR; |
| return this; |
| } |
| |
| public bool HasDefaultForeignEnum { |
| get { return result.HasDefaultForeignEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum { |
| get { return result.DefaultForeignEnum; } |
| set { SetDefaultForeignEnum(value); } |
| } |
| public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| result.hasDefaultForeignEnum = true; |
| result.defaultForeignEnum_ = value; |
| return this; |
| } |
| public Builder ClearDefaultForeignEnum() { |
| result.hasDefaultForeignEnum = false; |
| result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR; |
| return this; |
| } |
| |
| public bool HasDefaultImportEnum { |
| get { return result.HasDefaultImportEnum; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum { |
| get { return result.DefaultImportEnum; } |
| set { SetDefaultImportEnum(value); } |
| } |
| public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) { |
| result.hasDefaultImportEnum = true; |
| result.defaultImportEnum_ = value; |
| return this; |
| } |
| public Builder ClearDefaultImportEnum() { |
| result.hasDefaultImportEnum = false; |
| result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR; |
| return this; |
| } |
| |
| public bool HasDefaultStringPiece { |
| get { return result.HasDefaultStringPiece; } |
| } |
| public string DefaultStringPiece { |
| get { return result.DefaultStringPiece; } |
| set { SetDefaultStringPiece(value); } |
| } |
| public Builder SetDefaultStringPiece(string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasDefaultStringPiece = true; |
| result.defaultStringPiece_ = value; |
| return this; |
| } |
| public Builder ClearDefaultStringPiece() { |
| result.hasDefaultStringPiece = false; |
| result.defaultStringPiece_ = "abc"; |
| return this; |
| } |
| |
| public bool HasDefaultCord { |
| get { return result.HasDefaultCord; } |
| } |
| public string DefaultCord { |
| get { return result.DefaultCord; } |
| set { SetDefaultCord(value); } |
| } |
| public Builder SetDefaultCord(string value) { |
| pb::ThrowHelper.ThrowIfNull(value, "value"); |
| result.hasDefaultCord = true; |
| result.defaultCord_ = value; |
| return this; |
| } |
| public Builder ClearDefaultCord() { |
| result.hasDefaultCord = false; |
| result.defaultCord_ = "123"; |
| return this; |
| } |
| } |
| static TestAllTypesLite() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| public sealed partial class ForeignMessageLite : pb::GeneratedMessageLite<ForeignMessageLite, ForeignMessageLite.Builder> { |
| private static readonly ForeignMessageLite defaultInstance = new Builder().BuildPartial(); |
| public static ForeignMessageLite DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override ForeignMessageLite DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override ForeignMessageLite ThisMessage { |
| get { return this; } |
| } |
| |
| public const int CFieldNumber = 1; |
| private bool hasC; |
| private int c_ = 0; |
| public bool HasC { |
| get { return hasC; } |
| } |
| public int C { |
| get { return c_; } |
| } |
| |
| public override bool IsInitialized { |
| get { |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| if (HasC) { |
| output.WriteInt32(1, C); |
| } |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (HasC) { |
| size += pb::CodedOutputStream.ComputeInt32Size(1, C); |
| } |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| if (hasC) hash ^= c_.GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| ForeignMessageLite other = obj as ForeignMessageLite; |
| if (other == null) return false; |
| if (hasC != other.hasC || (hasC && !c_.Equals(other.c_))) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| PrintField("c", hasC, c_, writer); |
| } |
| #endregion |
| |
| public static ForeignMessageLite ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static ForeignMessageLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static ForeignMessageLite ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static ForeignMessageLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static ForeignMessageLite ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static ForeignMessageLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static ForeignMessageLite ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static ForeignMessageLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(ForeignMessageLite prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::GeneratedBuilderLite<ForeignMessageLite, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| ForeignMessageLite result = new ForeignMessageLite(); |
| |
| protected override ForeignMessageLite MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new ForeignMessageLite(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override ForeignMessageLite DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; } |
| } |
| |
| public override ForeignMessageLite BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| ForeignMessageLite returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is ForeignMessageLite) { |
| return MergeFrom((ForeignMessageLite) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(ForeignMessageLite other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) return this; |
| if (other.HasC) { |
| C = other.C; |
| } |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| case 8: { |
| C = input.ReadInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| |
| public bool HasC { |
| get { return result.HasC; } |
| } |
| public int C { |
| get { return result.C; } |
| set { SetC(value); } |
| } |
| public Builder SetC(int value) { |
| result.hasC = true; |
| result.c_ = value; |
| return this; |
| } |
| public Builder ClearC() { |
| result.hasC = false; |
| result.c_ = 0; |
| return this; |
| } |
| } |
| static ForeignMessageLite() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| public sealed partial class TestPackedTypesLite : pb::GeneratedMessageLite<TestPackedTypesLite, TestPackedTypesLite.Builder> { |
| private static readonly TestPackedTypesLite defaultInstance = new Builder().BuildPartial(); |
| public static TestPackedTypesLite DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override TestPackedTypesLite DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override TestPackedTypesLite ThisMessage { |
| get { return this; } |
| } |
| |
| public const int PackedInt32FieldNumber = 90; |
| private int packedInt32MemoizedSerializedSize; |
| private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>(); |
| public scg::IList<int> PackedInt32List { |
| get { return pbc::Lists.AsReadOnly(packedInt32_); } |
| } |
| public int PackedInt32Count { |
| get { return packedInt32_.Count; } |
| } |
| public int GetPackedInt32(int index) { |
| return packedInt32_[index]; |
| } |
| |
| public const int PackedInt64FieldNumber = 91; |
| private int packedInt64MemoizedSerializedSize; |
| private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>(); |
| public scg::IList<long> PackedInt64List { |
| get { return pbc::Lists.AsReadOnly(packedInt64_); } |
| } |
| public int PackedInt64Count { |
| get { return packedInt64_.Count; } |
| } |
| public long GetPackedInt64(int index) { |
| return packedInt64_[index]; |
| } |
| |
| public const int PackedUint32FieldNumber = 92; |
| private int packedUint32MemoizedSerializedSize; |
| private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>(); |
| [global::System.CLSCompliant(false)] |
| public scg::IList<uint> PackedUint32List { |
| get { return pbc::Lists.AsReadOnly(packedUint32_); } |
| } |
| public int PackedUint32Count { |
| get { return packedUint32_.Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint GetPackedUint32(int index) { |
| return packedUint32_[index]; |
| } |
| |
| public const int PackedUint64FieldNumber = 93; |
| private int packedUint64MemoizedSerializedSize; |
| private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>(); |
| [global::System.CLSCompliant(false)] |
| public scg::IList<ulong> PackedUint64List { |
| get { return pbc::Lists.AsReadOnly(packedUint64_); } |
| } |
| public int PackedUint64Count { |
| get { return packedUint64_.Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong GetPackedUint64(int index) { |
| return packedUint64_[index]; |
| } |
| |
| public const int PackedSint32FieldNumber = 94; |
| private int packedSint32MemoizedSerializedSize; |
| private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>(); |
| public scg::IList<int> PackedSint32List { |
| get { return pbc::Lists.AsReadOnly(packedSint32_); } |
| } |
| public int PackedSint32Count { |
| get { return packedSint32_.Count; } |
| } |
| public int GetPackedSint32(int index) { |
| return packedSint32_[index]; |
| } |
| |
| public const int PackedSint64FieldNumber = 95; |
| private int packedSint64MemoizedSerializedSize; |
| private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>(); |
| public scg::IList<long> PackedSint64List { |
| get { return pbc::Lists.AsReadOnly(packedSint64_); } |
| } |
| public int PackedSint64Count { |
| get { return packedSint64_.Count; } |
| } |
| public long GetPackedSint64(int index) { |
| return packedSint64_[index]; |
| } |
| |
| public const int PackedFixed32FieldNumber = 96; |
| private int packedFixed32MemoizedSerializedSize; |
| private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>(); |
| [global::System.CLSCompliant(false)] |
| public scg::IList<uint> PackedFixed32List { |
| get { return pbc::Lists.AsReadOnly(packedFixed32_); } |
| } |
| public int PackedFixed32Count { |
| get { return packedFixed32_.Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint GetPackedFixed32(int index) { |
| return packedFixed32_[index]; |
| } |
| |
| public const int PackedFixed64FieldNumber = 97; |
| private int packedFixed64MemoizedSerializedSize; |
| private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>(); |
| [global::System.CLSCompliant(false)] |
| public scg::IList<ulong> PackedFixed64List { |
| get { return pbc::Lists.AsReadOnly(packedFixed64_); } |
| } |
| public int PackedFixed64Count { |
| get { return packedFixed64_.Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong GetPackedFixed64(int index) { |
| return packedFixed64_[index]; |
| } |
| |
| public const int PackedSfixed32FieldNumber = 98; |
| private int packedSfixed32MemoizedSerializedSize; |
| private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>(); |
| public scg::IList<int> PackedSfixed32List { |
| get { return pbc::Lists.AsReadOnly(packedSfixed32_); } |
| } |
| public int PackedSfixed32Count { |
| get { return packedSfixed32_.Count; } |
| } |
| public int GetPackedSfixed32(int index) { |
| return packedSfixed32_[index]; |
| } |
| |
| public const int PackedSfixed64FieldNumber = 99; |
| private int packedSfixed64MemoizedSerializedSize; |
| private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>(); |
| public scg::IList<long> PackedSfixed64List { |
| get { return pbc::Lists.AsReadOnly(packedSfixed64_); } |
| } |
| public int PackedSfixed64Count { |
| get { return packedSfixed64_.Count; } |
| } |
| public long GetPackedSfixed64(int index) { |
| return packedSfixed64_[index]; |
| } |
| |
| public const int PackedFloatFieldNumber = 100; |
| private int packedFloatMemoizedSerializedSize; |
| private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>(); |
| public scg::IList<float> PackedFloatList { |
| get { return pbc::Lists.AsReadOnly(packedFloat_); } |
| } |
| public int PackedFloatCount { |
| get { return packedFloat_.Count; } |
| } |
| public float GetPackedFloat(int index) { |
| return packedFloat_[index]; |
| } |
| |
| public const int PackedDoubleFieldNumber = 101; |
| private int packedDoubleMemoizedSerializedSize; |
| private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>(); |
| public scg::IList<double> PackedDoubleList { |
| get { return pbc::Lists.AsReadOnly(packedDouble_); } |
| } |
| public int PackedDoubleCount { |
| get { return packedDouble_.Count; } |
| } |
| public double GetPackedDouble(int index) { |
| return packedDouble_[index]; |
| } |
| |
| public const int PackedBoolFieldNumber = 102; |
| private int packedBoolMemoizedSerializedSize; |
| private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>(); |
| public scg::IList<bool> PackedBoolList { |
| get { return pbc::Lists.AsReadOnly(packedBool_); } |
| } |
| public int PackedBoolCount { |
| get { return packedBool_.Count; } |
| } |
| public bool GetPackedBool(int index) { |
| return packedBool_[index]; |
| } |
| |
| public const int PackedEnumFieldNumber = 103; |
| private int packedEnumMemoizedSerializedSize; |
| private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(); |
| public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList { |
| get { return pbc::Lists.AsReadOnly(packedEnum_); } |
| } |
| public int PackedEnumCount { |
| get { return packedEnum_.Count; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) { |
| return packedEnum_[index]; |
| } |
| |
| public override bool IsInitialized { |
| get { |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| if (packedInt32_.Count > 0) { |
| output.WriteRawVarint32(722); |
| output.WriteRawVarint32((uint) packedInt32MemoizedSerializedSize); |
| foreach (int element in packedInt32_) { |
| output.WriteInt32NoTag(element); |
| } |
| } |
| if (packedInt64_.Count > 0) { |
| output.WriteRawVarint32(730); |
| output.WriteRawVarint32((uint) packedInt64MemoizedSerializedSize); |
| foreach (long element in packedInt64_) { |
| output.WriteInt64NoTag(element); |
| } |
| } |
| if (packedUint32_.Count > 0) { |
| output.WriteRawVarint32(738); |
| output.WriteRawVarint32((uint) packedUint32MemoizedSerializedSize); |
| foreach (uint element in packedUint32_) { |
| output.WriteUInt32NoTag(element); |
| } |
| } |
| if (packedUint64_.Count > 0) { |
| output.WriteRawVarint32(746); |
| output.WriteRawVarint32((uint) packedUint64MemoizedSerializedSize); |
| foreach (ulong element in packedUint64_) { |
| output.WriteUInt64NoTag(element); |
| } |
| } |
| if (packedSint32_.Count > 0) { |
| output.WriteRawVarint32(754); |
| output.WriteRawVarint32((uint) packedSint32MemoizedSerializedSize); |
| foreach (int element in packedSint32_) { |
| output.WriteSInt32NoTag(element); |
| } |
| } |
| if (packedSint64_.Count > 0) { |
| output.WriteRawVarint32(762); |
| output.WriteRawVarint32((uint) packedSint64MemoizedSerializedSize); |
| foreach (long element in packedSint64_) { |
| output.WriteSInt64NoTag(element); |
| } |
| } |
| if (packedFixed32_.Count > 0) { |
| output.WriteRawVarint32(770); |
| output.WriteRawVarint32((uint) packedFixed32MemoizedSerializedSize); |
| foreach (uint element in packedFixed32_) { |
| output.WriteFixed32NoTag(element); |
| } |
| } |
| if (packedFixed64_.Count > 0) { |
| output.WriteRawVarint32(778); |
| output.WriteRawVarint32((uint) packedFixed64MemoizedSerializedSize); |
| foreach (ulong element in packedFixed64_) { |
| output.WriteFixed64NoTag(element); |
| } |
| } |
| if (packedSfixed32_.Count > 0) { |
| output.WriteRawVarint32(786); |
| output.WriteRawVarint32((uint) packedSfixed32MemoizedSerializedSize); |
| foreach (int element in packedSfixed32_) { |
| output.WriteSFixed32NoTag(element); |
| } |
| } |
| if (packedSfixed64_.Count > 0) { |
| output.WriteRawVarint32(794); |
| output.WriteRawVarint32((uint) packedSfixed64MemoizedSerializedSize); |
| foreach (long element in packedSfixed64_) { |
| output.WriteSFixed64NoTag(element); |
| } |
| } |
| if (packedFloat_.Count > 0) { |
| output.WriteRawVarint32(802); |
| output.WriteRawVarint32((uint) packedFloatMemoizedSerializedSize); |
| foreach (float element in packedFloat_) { |
| output.WriteFloatNoTag(element); |
| } |
| } |
| if (packedDouble_.Count > 0) { |
| output.WriteRawVarint32(810); |
| output.WriteRawVarint32((uint) packedDoubleMemoizedSerializedSize); |
| foreach (double element in packedDouble_) { |
| output.WriteDoubleNoTag(element); |
| } |
| } |
| if (packedBool_.Count > 0) { |
| output.WriteRawVarint32(818); |
| output.WriteRawVarint32((uint) packedBoolMemoizedSerializedSize); |
| foreach (bool element in packedBool_) { |
| output.WriteBoolNoTag(element); |
| } |
| } |
| if (packedEnum_.Count > 0) { |
| output.WriteRawVarint32(826); |
| output.WriteRawVarint32((uint) packedEnumMemoizedSerializedSize); |
| foreach (int element in packedEnum_) { |
| output.WriteEnumNoTag(element); |
| } |
| } |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| { |
| int dataSize = 0; |
| foreach (int element in PackedInt32List) { |
| dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element); |
| } |
| size += dataSize; |
| if (packedInt32_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedInt32MemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| foreach (long element in PackedInt64List) { |
| dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element); |
| } |
| size += dataSize; |
| if (packedInt64_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedInt64MemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| foreach (uint element in PackedUint32List) { |
| dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element); |
| } |
| size += dataSize; |
| if (packedUint32_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedUint32MemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| foreach (ulong element in PackedUint64List) { |
| dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element); |
| } |
| size += dataSize; |
| if (packedUint64_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedUint64MemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| foreach (int element in PackedSint32List) { |
| dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element); |
| } |
| size += dataSize; |
| if (packedSint32_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedSint32MemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| foreach (long element in PackedSint64List) { |
| dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element); |
| } |
| size += dataSize; |
| if (packedSint64_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedSint64MemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 4 * packedFixed32_.Count; |
| size += dataSize; |
| if (packedFixed32_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedFixed32MemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 8 * packedFixed64_.Count; |
| size += dataSize; |
| if (packedFixed64_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedFixed64MemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 4 * packedSfixed32_.Count; |
| size += dataSize; |
| if (packedSfixed32_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedSfixed32MemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 8 * packedSfixed64_.Count; |
| size += dataSize; |
| if (packedSfixed64_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedSfixed64MemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 4 * packedFloat_.Count; |
| size += dataSize; |
| if (packedFloat_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedFloatMemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 8 * packedDouble_.Count; |
| size += dataSize; |
| if (packedDouble_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedDoubleMemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| dataSize = 1 * packedBool_.Count; |
| size += dataSize; |
| if (packedBool_.Count != 0) { |
| size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| } |
| packedBoolMemoizedSerializedSize = dataSize; |
| } |
| { |
| int dataSize = 0; |
| if (packedEnum_.Count > 0) { |
| foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in packedEnum_) { |
| dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| } |
| size += dataSize; |
| size += 2; |
| size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize); |
| } |
| packedEnumMemoizedSerializedSize = dataSize; |
| } |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| foreach(int i in packedInt32_) |
| hash ^= i.GetHashCode(); |
| foreach(long i in packedInt64_) |
| hash ^= i.GetHashCode(); |
| foreach(uint i in packedUint32_) |
| hash ^= i.GetHashCode(); |
| foreach(ulong i in packedUint64_) |
| hash ^= i.GetHashCode(); |
| foreach(int i in packedSint32_) |
| hash ^= i.GetHashCode(); |
| foreach(long i in packedSint64_) |
| hash ^= i.GetHashCode(); |
| foreach(uint i in packedFixed32_) |
| hash ^= i.GetHashCode(); |
| foreach(ulong i in packedFixed64_) |
| hash ^= i.GetHashCode(); |
| foreach(int i in packedSfixed32_) |
| hash ^= i.GetHashCode(); |
| foreach(long i in packedSfixed64_) |
| hash ^= i.GetHashCode(); |
| foreach(float i in packedFloat_) |
| hash ^= i.GetHashCode(); |
| foreach(double i in packedDouble_) |
| hash ^= i.GetHashCode(); |
| foreach(bool i in packedBool_) |
| hash ^= i.GetHashCode(); |
| foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in packedEnum_) |
| hash ^= i.GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| TestPackedTypesLite other = obj as TestPackedTypesLite; |
| if (other == null) return false; |
| if(packedInt32_.Count != other.packedInt32_.Count) return false; |
| for(int ix=0; ix < packedInt32_.Count; ix++) |
| if(!packedInt32_[ix].Equals(other.packedInt32_[ix])) return false; |
| if(packedInt64_.Count != other.packedInt64_.Count) return false; |
| for(int ix=0; ix < packedInt64_.Count; ix++) |
| if(!packedInt64_[ix].Equals(other.packedInt64_[ix])) return false; |
| if(packedUint32_.Count != other.packedUint32_.Count) return false; |
| for(int ix=0; ix < packedUint32_.Count; ix++) |
| if(!packedUint32_[ix].Equals(other.packedUint32_[ix])) return false; |
| if(packedUint64_.Count != other.packedUint64_.Count) return false; |
| for(int ix=0; ix < packedUint64_.Count; ix++) |
| if(!packedUint64_[ix].Equals(other.packedUint64_[ix])) return false; |
| if(packedSint32_.Count != other.packedSint32_.Count) return false; |
| for(int ix=0; ix < packedSint32_.Count; ix++) |
| if(!packedSint32_[ix].Equals(other.packedSint32_[ix])) return false; |
| if(packedSint64_.Count != other.packedSint64_.Count) return false; |
| for(int ix=0; ix < packedSint64_.Count; ix++) |
| if(!packedSint64_[ix].Equals(other.packedSint64_[ix])) return false; |
| if(packedFixed32_.Count != other.packedFixed32_.Count) return false; |
| for(int ix=0; ix < packedFixed32_.Count; ix++) |
| if(!packedFixed32_[ix].Equals(other.packedFixed32_[ix])) return false; |
| if(packedFixed64_.Count != other.packedFixed64_.Count) return false; |
| for(int ix=0; ix < packedFixed64_.Count; ix++) |
| if(!packedFixed64_[ix].Equals(other.packedFixed64_[ix])) return false; |
| if(packedSfixed32_.Count != other.packedSfixed32_.Count) return false; |
| for(int ix=0; ix < packedSfixed32_.Count; ix++) |
| if(!packedSfixed32_[ix].Equals(other.packedSfixed32_[ix])) return false; |
| if(packedSfixed64_.Count != other.packedSfixed64_.Count) return false; |
| for(int ix=0; ix < packedSfixed64_.Count; ix++) |
| if(!packedSfixed64_[ix].Equals(other.packedSfixed64_[ix])) return false; |
| if(packedFloat_.Count != other.packedFloat_.Count) return false; |
| for(int ix=0; ix < packedFloat_.Count; ix++) |
| if(!packedFloat_[ix].Equals(other.packedFloat_[ix])) return false; |
| if(packedDouble_.Count != other.packedDouble_.Count) return false; |
| for(int ix=0; ix < packedDouble_.Count; ix++) |
| if(!packedDouble_[ix].Equals(other.packedDouble_[ix])) return false; |
| if(packedBool_.Count != other.packedBool_.Count) return false; |
| for(int ix=0; ix < packedBool_.Count; ix++) |
| if(!packedBool_[ix].Equals(other.packedBool_[ix])) return false; |
| if(packedEnum_.Count != other.packedEnum_.Count) return false; |
| for(int ix=0; ix < packedEnum_.Count; ix++) |
| if(!packedEnum_[ix].Equals(other.packedEnum_[ix])) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| PrintField("packed_int32", packedInt32_, writer); |
| PrintField("packed_int64", packedInt64_, writer); |
| PrintField("packed_uint32", packedUint32_, writer); |
| PrintField("packed_uint64", packedUint64_, writer); |
| PrintField("packed_sint32", packedSint32_, writer); |
| PrintField("packed_sint64", packedSint64_, writer); |
| PrintField("packed_fixed32", packedFixed32_, writer); |
| PrintField("packed_fixed64", packedFixed64_, writer); |
| PrintField("packed_sfixed32", packedSfixed32_, writer); |
| PrintField("packed_sfixed64", packedSfixed64_, writer); |
| PrintField("packed_float", packedFloat_, writer); |
| PrintField("packed_double", packedDouble_, writer); |
| PrintField("packed_bool", packedBool_, writer); |
| PrintField("packed_enum", packedEnum_, writer); |
| } |
| #endregion |
| |
| public static TestPackedTypesLite ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestPackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestPackedTypesLite ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestPackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static TestPackedTypesLite ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestPackedTypesLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(TestPackedTypesLite prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::GeneratedBuilderLite<TestPackedTypesLite, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| TestPackedTypesLite result = new TestPackedTypesLite(); |
| |
| protected override TestPackedTypesLite MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new TestPackedTypesLite(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override TestPackedTypesLite DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance; } |
| } |
| |
| public override TestPackedTypesLite BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| result.packedInt32_.MakeReadOnly(); |
| result.packedInt64_.MakeReadOnly(); |
| result.packedUint32_.MakeReadOnly(); |
| result.packedUint64_.MakeReadOnly(); |
| result.packedSint32_.MakeReadOnly(); |
| result.packedSint64_.MakeReadOnly(); |
| result.packedFixed32_.MakeReadOnly(); |
| result.packedFixed64_.MakeReadOnly(); |
| result.packedSfixed32_.MakeReadOnly(); |
| result.packedSfixed64_.MakeReadOnly(); |
| result.packedFloat_.MakeReadOnly(); |
| result.packedDouble_.MakeReadOnly(); |
| result.packedBool_.MakeReadOnly(); |
| result.packedEnum_.MakeReadOnly(); |
| TestPackedTypesLite returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is TestPackedTypesLite) { |
| return MergeFrom((TestPackedTypesLite) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(TestPackedTypesLite other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance) return this; |
| if (other.packedInt32_.Count != 0) { |
| base.AddRange(other.packedInt32_, result.packedInt32_); |
| } |
| if (other.packedInt64_.Count != 0) { |
| base.AddRange(other.packedInt64_, result.packedInt64_); |
| } |
| if (other.packedUint32_.Count != 0) { |
| base.AddRange(other.packedUint32_, result.packedUint32_); |
| } |
| if (other.packedUint64_.Count != 0) { |
| base.AddRange(other.packedUint64_, result.packedUint64_); |
| } |
| if (other.packedSint32_.Count != 0) { |
| base.AddRange(other.packedSint32_, result.packedSint32_); |
| } |
| if (other.packedSint64_.Count != 0) { |
| base.AddRange(other.packedSint64_, result.packedSint64_); |
| } |
| if (other.packedFixed32_.Count != 0) { |
| base.AddRange(other.packedFixed32_, result.packedFixed32_); |
| } |
| if (other.packedFixed64_.Count != 0) { |
| base.AddRange(other.packedFixed64_, result.packedFixed64_); |
| } |
| if (other.packedSfixed32_.Count != 0) { |
| base.AddRange(other.packedSfixed32_, result.packedSfixed32_); |
| } |
| if (other.packedSfixed64_.Count != 0) { |
| base.AddRange(other.packedSfixed64_, result.packedSfixed64_); |
| } |
| if (other.packedFloat_.Count != 0) { |
| base.AddRange(other.packedFloat_, result.packedFloat_); |
| } |
| if (other.packedDouble_.Count != 0) { |
| base.AddRange(other.packedDouble_, result.packedDouble_); |
| } |
| if (other.packedBool_.Count != 0) { |
| base.AddRange(other.packedBool_, result.packedBool_); |
| } |
| if (other.packedEnum_.Count != 0) { |
| base.AddRange(other.packedEnum_, result.packedEnum_); |
| } |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| case 722: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedInt32(input.ReadInt32()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 730: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedInt64(input.ReadInt64()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 738: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedUint32(input.ReadUInt32()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 746: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedUint64(input.ReadUInt64()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 754: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedSint32(input.ReadSInt32()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 762: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedSint64(input.ReadSInt64()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 770: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedFixed32(input.ReadFixed32()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 778: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedFixed64(input.ReadFixed64()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 786: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedSfixed32(input.ReadSFixed32()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 794: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedSfixed64(input.ReadSFixed64()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 802: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedFloat(input.ReadFloat()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 810: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedDouble(input.ReadDouble()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 818: { |
| int length = input.ReadInt32(); |
| int limit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| AddPackedBool(input.ReadBool()); |
| } |
| input.PopLimit(limit); |
| break; |
| } |
| case 826: { |
| int length = input.ReadInt32(); |
| int oldLimit = input.PushLimit(length); |
| while (!input.ReachedLimit) { |
| int rawValue = input.ReadEnum(); |
| if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), rawValue)) { |
| } else { |
| AddPackedEnum((global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite) rawValue); |
| } |
| } |
| input.PopLimit(oldLimit); |
| break; |
| } |
| } |
| } |
| } |
| |
| |
| public pbc::IPopsicleList<int> PackedInt32List { |
| get { return result.packedInt32_; } |
| } |
| public int PackedInt32Count { |
| get { return result.PackedInt32Count; } |
| } |
| public int GetPackedInt32(int index) { |
| return result.GetPackedInt32(index); |
| } |
| public Builder SetPackedInt32(int index, int value) { |
| result.packedInt32_[index] = value; |
| return this; |
| } |
| public Builder AddPackedInt32(int value) { |
| result.packedInt32_.Add(value); |
| return this; |
| } |
| public Builder AddRangePackedInt32(scg::IEnumerable<int> values) { |
| base.AddRange(values, result.packedInt32_); |
| return this; |
| } |
| public Builder ClearPackedInt32() { |
| result.packedInt32_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<long> PackedInt64List { |
| get { return result.packedInt64_; } |
| } |
| public int PackedInt64Count { |
| get { return result.PackedInt64Count; } |
| } |
| public long GetPackedInt64(int index) { |
| return result.GetPackedInt64(index); |
| } |
| public Builder SetPackedInt64(int index, long value) { |
| result.packedInt64_[index] = value; |
| return this; |
| } |
| public Builder AddPackedInt64(long value) { |
| result.packedInt64_.Add(value); |
| return this; |
| } |
| public Builder AddRangePackedInt64(scg::IEnumerable<long> values) { |
| base.AddRange(values, result.packedInt64_); |
| return this; |
| } |
| public Builder ClearPackedInt64() { |
| result.packedInt64_.Clear(); |
| return this; |
| } |
| |
| [global::System.CLSCompliant(false)] |
| public pbc::IPopsicleList<uint> PackedUint32List { |
| get { return result.packedUint32_; } |
| } |
| public int PackedUint32Count { |
| get { return result.PackedUint32Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint GetPackedUint32(int index) { |
| return result.GetPackedUint32(index); |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetPackedUint32(int index, uint value) { |
| result.packedUint32_[index] = value; |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddPackedUint32(uint value) { |
| result.packedUint32_.Add(value); |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) { |
| base.AddRange(values, result.packedUint32_); |
| return this; |
| } |
| public Builder ClearPackedUint32() { |
| result.packedUint32_.Clear(); |
| return this; |
| } |
| |
| [global::System.CLSCompliant(false)] |
| public pbc::IPopsicleList<ulong> PackedUint64List { |
| get { return result.packedUint64_; } |
| } |
| public int PackedUint64Count { |
| get { return result.PackedUint64Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong GetPackedUint64(int index) { |
| return result.GetPackedUint64(index); |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetPackedUint64(int index, ulong value) { |
| result.packedUint64_[index] = value; |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddPackedUint64(ulong value) { |
| result.packedUint64_.Add(value); |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) { |
| base.AddRange(values, result.packedUint64_); |
| return this; |
| } |
| public Builder ClearPackedUint64() { |
| result.packedUint64_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<int> PackedSint32List { |
| get { return result.packedSint32_; } |
| } |
| public int PackedSint32Count { |
| get { return result.PackedSint32Count; } |
| } |
| public int GetPackedSint32(int index) { |
| return result.GetPackedSint32(index); |
| } |
| public Builder SetPackedSint32(int index, int value) { |
| result.packedSint32_[index] = value; |
| return this; |
| } |
| public Builder AddPackedSint32(int value) { |
| result.packedSint32_.Add(value); |
| return this; |
| } |
| public Builder AddRangePackedSint32(scg::IEnumerable<int> values) { |
| base.AddRange(values, result.packedSint32_); |
| return this; |
| } |
| public Builder ClearPackedSint32() { |
| result.packedSint32_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<long> PackedSint64List { |
| get { return result.packedSint64_; } |
| } |
| public int PackedSint64Count { |
| get { return result.PackedSint64Count; } |
| } |
| public long GetPackedSint64(int index) { |
| return result.GetPackedSint64(index); |
| } |
| public Builder SetPackedSint64(int index, long value) { |
| result.packedSint64_[index] = value; |
| return this; |
| } |
| public Builder AddPackedSint64(long value) { |
| result.packedSint64_.Add(value); |
| return this; |
| } |
| public Builder AddRangePackedSint64(scg::IEnumerable<long> values) { |
| base.AddRange(values, result.packedSint64_); |
| return this; |
| } |
| public Builder ClearPackedSint64() { |
| result.packedSint64_.Clear(); |
| return this; |
| } |
| |
| [global::System.CLSCompliant(false)] |
| public pbc::IPopsicleList<uint> PackedFixed32List { |
| get { return result.packedFixed32_; } |
| } |
| public int PackedFixed32Count { |
| get { return result.PackedFixed32Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public uint GetPackedFixed32(int index) { |
| return result.GetPackedFixed32(index); |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetPackedFixed32(int index, uint value) { |
| result.packedFixed32_[index] = value; |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddPackedFixed32(uint value) { |
| result.packedFixed32_.Add(value); |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) { |
| base.AddRange(values, result.packedFixed32_); |
| return this; |
| } |
| public Builder ClearPackedFixed32() { |
| result.packedFixed32_.Clear(); |
| return this; |
| } |
| |
| [global::System.CLSCompliant(false)] |
| public pbc::IPopsicleList<ulong> PackedFixed64List { |
| get { return result.packedFixed64_; } |
| } |
| public int PackedFixed64Count { |
| get { return result.PackedFixed64Count; } |
| } |
| [global::System.CLSCompliant(false)] |
| public ulong GetPackedFixed64(int index) { |
| return result.GetPackedFixed64(index); |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder SetPackedFixed64(int index, ulong value) { |
| result.packedFixed64_[index] = value; |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddPackedFixed64(ulong value) { |
| result.packedFixed64_.Add(value); |
| return this; |
| } |
| [global::System.CLSCompliant(false)] |
| public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) { |
| base.AddRange(values, result.packedFixed64_); |
| return this; |
| } |
| public Builder ClearPackedFixed64() { |
| result.packedFixed64_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<int> PackedSfixed32List { |
| get { return result.packedSfixed32_; } |
| } |
| public int PackedSfixed32Count { |
| get { return result.PackedSfixed32Count; } |
| } |
| public int GetPackedSfixed32(int index) { |
| return result.GetPackedSfixed32(index); |
| } |
| public Builder SetPackedSfixed32(int index, int value) { |
| result.packedSfixed32_[index] = value; |
| return this; |
| } |
| public Builder AddPackedSfixed32(int value) { |
| result.packedSfixed32_.Add(value); |
| return this; |
| } |
| public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) { |
| base.AddRange(values, result.packedSfixed32_); |
| return this; |
| } |
| public Builder ClearPackedSfixed32() { |
| result.packedSfixed32_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<long> PackedSfixed64List { |
| get { return result.packedSfixed64_; } |
| } |
| public int PackedSfixed64Count { |
| get { return result.PackedSfixed64Count; } |
| } |
| public long GetPackedSfixed64(int index) { |
| return result.GetPackedSfixed64(index); |
| } |
| public Builder SetPackedSfixed64(int index, long value) { |
| result.packedSfixed64_[index] = value; |
| return this; |
| } |
| public Builder AddPackedSfixed64(long value) { |
| result.packedSfixed64_.Add(value); |
| return this; |
| } |
| public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) { |
| base.AddRange(values, result.packedSfixed64_); |
| return this; |
| } |
| public Builder ClearPackedSfixed64() { |
| result.packedSfixed64_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<float> PackedFloatList { |
| get { return result.packedFloat_; } |
| } |
| public int PackedFloatCount { |
| get { return result.PackedFloatCount; } |
| } |
| public float GetPackedFloat(int index) { |
| return result.GetPackedFloat(index); |
| } |
| public Builder SetPackedFloat(int index, float value) { |
| result.packedFloat_[index] = value; |
| return this; |
| } |
| public Builder AddPackedFloat(float value) { |
| result.packedFloat_.Add(value); |
| return this; |
| } |
| public Builder AddRangePackedFloat(scg::IEnumerable<float> values) { |
| base.AddRange(values, result.packedFloat_); |
| return this; |
| } |
| public Builder ClearPackedFloat() { |
| result.packedFloat_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<double> PackedDoubleList { |
| get { return result.packedDouble_; } |
| } |
| public int PackedDoubleCount { |
| get { return result.PackedDoubleCount; } |
| } |
| public double GetPackedDouble(int index) { |
| return result.GetPackedDouble(index); |
| } |
| public Builder SetPackedDouble(int index, double value) { |
| result.packedDouble_[index] = value; |
| return this; |
| } |
| public Builder AddPackedDouble(double value) { |
| result.packedDouble_.Add(value); |
| return this; |
| } |
| public Builder AddRangePackedDouble(scg::IEnumerable<double> values) { |
| base.AddRange(values, result.packedDouble_); |
| return this; |
| } |
| public Builder ClearPackedDouble() { |
| result.packedDouble_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<bool> PackedBoolList { |
| get { return result.packedBool_; } |
| } |
| public int PackedBoolCount { |
| get { return result.PackedBoolCount; } |
| } |
| public bool GetPackedBool(int index) { |
| return result.GetPackedBool(index); |
| } |
| public Builder SetPackedBool(int index, bool value) { |
| result.packedBool_[index] = value; |
| return this; |
| } |
| public Builder AddPackedBool(bool value) { |
| result.packedBool_.Add(value); |
| return this; |
| } |
| public Builder AddRangePackedBool(scg::IEnumerable<bool> values) { |
| base.AddRange(values, result.packedBool_); |
| return this; |
| } |
| public Builder ClearPackedBool() { |
| result.packedBool_.Clear(); |
| return this; |
| } |
| |
| public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList { |
| get { return result.packedEnum_; } |
| } |
| public int PackedEnumCount { |
| get { return result.PackedEnumCount; } |
| } |
| public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) { |
| return result.GetPackedEnum(index); |
| } |
| public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| result.packedEnum_[index] = value; |
| return this; |
| } |
| public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| result.packedEnum_.Add(value); |
| return this; |
| } |
| public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) { |
| base.AddRange(values, result.packedEnum_); |
| return this; |
| } |
| public Builder ClearPackedEnum() { |
| result.packedEnum_.Clear(); |
| return this; |
| } |
| } |
| static TestPackedTypesLite() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| public sealed partial class TestAllExtensionsLite : pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder> { |
| private static readonly TestAllExtensionsLite defaultInstance = new Builder().BuildPartial(); |
| public static TestAllExtensionsLite DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override TestAllExtensionsLite DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override TestAllExtensionsLite ThisMessage { |
| get { return this; } |
| } |
| |
| public override bool IsInitialized { |
| get { |
| if (!ExtensionsAreInitialized) return false; |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| extensionWriter.WriteUntil(536870912, output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += ExtensionsSerializedSize; |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| hash ^= base.GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| TestAllExtensionsLite other = obj as TestAllExtensionsLite; |
| if (other == null) return false; |
| if (!base.Equals(other)) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| base.PrintTo(writer); |
| } |
| #endregion |
| |
| public static TestAllExtensionsLite ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestAllExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestAllExtensionsLite ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestAllExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static TestAllExtensionsLite ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestAllExtensionsLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(TestAllExtensionsLite prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::ExtendableBuilderLite<TestAllExtensionsLite, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| TestAllExtensionsLite result = new TestAllExtensionsLite(); |
| |
| protected override TestAllExtensionsLite MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new TestAllExtensionsLite(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override TestAllExtensionsLite DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance; } |
| } |
| |
| public override TestAllExtensionsLite BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| TestAllExtensionsLite returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is TestAllExtensionsLite) { |
| return MergeFrom((TestAllExtensionsLite) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(TestAllExtensionsLite other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance) return this; |
| this.MergeExtensionFields(other); |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| } |
| } |
| } |
| |
| } |
| static TestAllExtensionsLite() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| public sealed partial class OptionalGroup_extension_lite : pb::GeneratedMessageLite<OptionalGroup_extension_lite, OptionalGroup_extension_lite.Builder> { |
| private static readonly OptionalGroup_extension_lite defaultInstance = new Builder().BuildPartial(); |
| public static OptionalGroup_extension_lite DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override OptionalGroup_extension_lite DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override OptionalGroup_extension_lite ThisMessage { |
| get { return this; } |
| } |
| |
| public const int AFieldNumber = 17; |
| private bool hasA; |
| private int a_ = 0; |
| public bool HasA { |
| get { return hasA; } |
| } |
| public int A { |
| get { return a_; } |
| } |
| |
| public override bool IsInitialized { |
| get { |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| if (HasA) { |
| output.WriteInt32(17, A); |
| } |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (HasA) { |
| size += pb::CodedOutputStream.ComputeInt32Size(17, A); |
| } |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| if (hasA) hash ^= a_.GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| OptionalGroup_extension_lite other = obj as OptionalGroup_extension_lite; |
| if (other == null) return false; |
| if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| PrintField("a", hasA, a_, writer); |
| } |
| #endregion |
| |
| public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static OptionalGroup_extension_lite ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static OptionalGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static OptionalGroup_extension_lite ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static OptionalGroup_extension_lite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(OptionalGroup_extension_lite prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup_extension_lite, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| OptionalGroup_extension_lite result = new OptionalGroup_extension_lite(); |
| |
| protected override OptionalGroup_extension_lite MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new OptionalGroup_extension_lite(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override OptionalGroup_extension_lite DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance; } |
| } |
| |
| public override OptionalGroup_extension_lite BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| OptionalGroup_extension_lite returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is OptionalGroup_extension_lite) { |
| return MergeFrom((OptionalGroup_extension_lite) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(OptionalGroup_extension_lite other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance) return this; |
| if (other.HasA) { |
| A = other.A; |
| } |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| case 136: { |
| A = input.ReadInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| |
| public bool HasA { |
| get { return result.HasA; } |
| } |
| public int A { |
| get { return result.A; } |
| set { SetA(value); } |
| } |
| public Builder SetA(int value) { |
| result.hasA = true; |
| result.a_ = value; |
| return this; |
| } |
| public Builder ClearA() { |
| result.hasA = false; |
| result.a_ = 0; |
| return this; |
| } |
| } |
| static OptionalGroup_extension_lite() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| public sealed partial class RepeatedGroup_extension_lite : pb::GeneratedMessageLite<RepeatedGroup_extension_lite, RepeatedGroup_extension_lite.Builder> { |
| private static readonly RepeatedGroup_extension_lite defaultInstance = new Builder().BuildPartial(); |
| public static RepeatedGroup_extension_lite DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override RepeatedGroup_extension_lite DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override RepeatedGroup_extension_lite ThisMessage { |
| get { return this; } |
| } |
| |
| public const int AFieldNumber = 47; |
| private bool hasA; |
| private int a_ = 0; |
| public bool HasA { |
| get { return hasA; } |
| } |
| public int A { |
| get { return a_; } |
| } |
| |
| public override bool IsInitialized { |
| get { |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| if (HasA) { |
| output.WriteInt32(47, A); |
| } |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (HasA) { |
| size += pb::CodedOutputStream.ComputeInt32Size(47, A); |
| } |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| if (hasA) hash ^= a_.GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| RepeatedGroup_extension_lite other = obj as RepeatedGroup_extension_lite; |
| if (other == null) return false; |
| if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| PrintField("a", hasA, a_, writer); |
| } |
| #endregion |
| |
| public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static RepeatedGroup_extension_lite ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static RepeatedGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static RepeatedGroup_extension_lite ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static RepeatedGroup_extension_lite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(RepeatedGroup_extension_lite prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup_extension_lite, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| RepeatedGroup_extension_lite result = new RepeatedGroup_extension_lite(); |
| |
| protected override RepeatedGroup_extension_lite MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new RepeatedGroup_extension_lite(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override RepeatedGroup_extension_lite DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance; } |
| } |
| |
| public override RepeatedGroup_extension_lite BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| RepeatedGroup_extension_lite returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is RepeatedGroup_extension_lite) { |
| return MergeFrom((RepeatedGroup_extension_lite) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(RepeatedGroup_extension_lite other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance) return this; |
| if (other.HasA) { |
| A = other.A; |
| } |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| case 376: { |
| A = input.ReadInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| |
| public bool HasA { |
| get { return result.HasA; } |
| } |
| public int A { |
| get { return result.A; } |
| set { SetA(value); } |
| } |
| public Builder SetA(int value) { |
| result.hasA = true; |
| result.a_ = value; |
| return this; |
| } |
| public Builder ClearA() { |
| result.hasA = false; |
| result.a_ = 0; |
| return this; |
| } |
| } |
| static RepeatedGroup_extension_lite() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| public sealed partial class TestPackedExtensionsLite : pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder> { |
| private static readonly TestPackedExtensionsLite defaultInstance = new Builder().BuildPartial(); |
| public static TestPackedExtensionsLite DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override TestPackedExtensionsLite DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override TestPackedExtensionsLite ThisMessage { |
| get { return this; } |
| } |
| |
| public override bool IsInitialized { |
| get { |
| if (!ExtensionsAreInitialized) return false; |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| extensionWriter.WriteUntil(536870912, output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += ExtensionsSerializedSize; |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| hash ^= base.GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| TestPackedExtensionsLite other = obj as TestPackedExtensionsLite; |
| if (other == null) return false; |
| if (!base.Equals(other)) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| base.PrintTo(writer); |
| } |
| #endregion |
| |
| public static TestPackedExtensionsLite ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestPackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestPackedExtensionsLite ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestPackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static TestPackedExtensionsLite ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestPackedExtensionsLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(TestPackedExtensionsLite prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::ExtendableBuilderLite<TestPackedExtensionsLite, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| TestPackedExtensionsLite result = new TestPackedExtensionsLite(); |
| |
| protected override TestPackedExtensionsLite MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new TestPackedExtensionsLite(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override TestPackedExtensionsLite DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance; } |
| } |
| |
| public override TestPackedExtensionsLite BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| TestPackedExtensionsLite returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is TestPackedExtensionsLite) { |
| return MergeFrom((TestPackedExtensionsLite) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(TestPackedExtensionsLite other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance) return this; |
| this.MergeExtensionFields(other); |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| } |
| } |
| } |
| |
| } |
| static TestPackedExtensionsLite() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| public sealed partial class TestNestedExtensionLite : pb::GeneratedMessageLite<TestNestedExtensionLite, TestNestedExtensionLite.Builder> { |
| private static readonly TestNestedExtensionLite defaultInstance = new Builder().BuildPartial(); |
| public static TestNestedExtensionLite DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override TestNestedExtensionLite DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override TestNestedExtensionLite ThisMessage { |
| get { return this; } |
| } |
| |
| public const int NestedExtensionFieldNumber = 12345; |
| public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> NestedExtension; |
| public override bool IsInitialized { |
| get { |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| TestNestedExtensionLite other = obj as TestNestedExtensionLite; |
| if (other == null) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| } |
| #endregion |
| |
| public static TestNestedExtensionLite ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestNestedExtensionLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestNestedExtensionLite ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestNestedExtensionLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static TestNestedExtensionLite ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestNestedExtensionLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(TestNestedExtensionLite prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::GeneratedBuilderLite<TestNestedExtensionLite, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| TestNestedExtensionLite result = new TestNestedExtensionLite(); |
| |
| protected override TestNestedExtensionLite MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new TestNestedExtensionLite(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override TestNestedExtensionLite DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance; } |
| } |
| |
| public override TestNestedExtensionLite BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| TestNestedExtensionLite returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is TestNestedExtensionLite) { |
| return MergeFrom((TestNestedExtensionLite) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(TestNestedExtensionLite other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance) return this; |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| } |
| } |
| } |
| |
| } |
| static TestNestedExtensionLite() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| public sealed partial class TestDeprecatedLite : pb::GeneratedMessageLite<TestDeprecatedLite, TestDeprecatedLite.Builder> { |
| private static readonly TestDeprecatedLite defaultInstance = new Builder().BuildPartial(); |
| public static TestDeprecatedLite DefaultInstance { |
| get { return defaultInstance; } |
| } |
| |
| public override TestDeprecatedLite DefaultInstanceForType { |
| get { return defaultInstance; } |
| } |
| |
| protected override TestDeprecatedLite ThisMessage { |
| get { return this; } |
| } |
| |
| public const int DeprecatedFieldFieldNumber = 1; |
| private bool hasDeprecatedField; |
| private int deprecatedField_ = 0; |
| public bool HasDeprecatedField { |
| get { return hasDeprecatedField; } |
| } |
| public int DeprecatedField { |
| get { return deprecatedField_; } |
| } |
| |
| public override bool IsInitialized { |
| get { |
| return true; |
| } |
| } |
| |
| public override void WriteTo(pb::CodedOutputStream output) { |
| int size = SerializedSize; |
| if (HasDeprecatedField) { |
| output.WriteInt32(1, DeprecatedField); |
| } |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public override int SerializedSize { |
| get { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (HasDeprecatedField) { |
| size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedField); |
| } |
| memoizedSerializedSize = size; |
| return size; |
| } |
| } |
| |
| #region Lite runtime methods |
| public override int GetHashCode() { |
| int hash = GetType().GetHashCode(); |
| if (hasDeprecatedField) hash ^= deprecatedField_.GetHashCode(); |
| return hash; |
| } |
| |
| public override bool Equals(object obj) { |
| TestDeprecatedLite other = obj as TestDeprecatedLite; |
| if (other == null) return false; |
| if (hasDeprecatedField != other.hasDeprecatedField || (hasDeprecatedField && !deprecatedField_.Equals(other.deprecatedField_))) return false; |
| return true; |
| } |
| |
| public override void PrintTo(global::System.IO.TextWriter writer) { |
| PrintField("deprecated_field", hasDeprecatedField, deprecatedField_, writer); |
| } |
| #endregion |
| |
| public static TestDeprecatedLite ParseFrom(pb::ByteString data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestDeprecatedLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestDeprecatedLite ParseFrom(byte[] data) { |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| } |
| public static TestDeprecatedLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| } |
| public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| } |
| public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| } |
| public static TestDeprecatedLite ParseFrom(pb::CodedInputStream input) { |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| } |
| public static TestDeprecatedLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| } |
| public static Builder CreateBuilder() { return new Builder(); } |
| public override Builder ToBuilder() { return CreateBuilder(this); } |
| public override Builder CreateBuilderForType() { return new Builder(); } |
| public static Builder CreateBuilder(TestDeprecatedLite prototype) { |
| return (Builder) new Builder().MergeFrom(prototype); |
| } |
| |
| public sealed partial class Builder : pb::GeneratedBuilderLite<TestDeprecatedLite, Builder> { |
| protected override Builder ThisBuilder { |
| get { return this; } |
| } |
| public Builder() {} |
| |
| TestDeprecatedLite result = new TestDeprecatedLite(); |
| |
| protected override TestDeprecatedLite MessageBeingBuilt { |
| get { return result; } |
| } |
| |
| public override Builder Clear() { |
| result = new TestDeprecatedLite(); |
| return this; |
| } |
| |
| public override Builder Clone() { |
| return new Builder().MergeFrom(result); |
| } |
| |
| public override TestDeprecatedLite DefaultInstanceForType { |
| get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance; } |
| } |
| |
| public override TestDeprecatedLite BuildPartial() { |
| if (result == null) { |
| throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| } |
| TestDeprecatedLite returnMe = result; |
| result = null; |
| return returnMe; |
| } |
| |
| public override Builder MergeFrom(pb::IMessageLite other) { |
| if (other is TestDeprecatedLite) { |
| return MergeFrom((TestDeprecatedLite) other); |
| } else { |
| base.MergeFrom(other); |
| return this; |
| } |
| } |
| |
| public override Builder MergeFrom(TestDeprecatedLite other) { |
| if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance) return this; |
| if (other.HasDeprecatedField) { |
| DeprecatedField = other.DeprecatedField; |
| } |
| return this; |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input) { |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| } |
| |
| public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| while (true) { |
| uint tag = input.ReadTag(); |
| switch (tag) { |
| case 0: { |
| return this; |
| } |
| default: { |
| if (pb::WireFormat.IsEndGroupTag(tag)) { |
| return this; |
| } |
| ParseUnknownField(input, extensionRegistry, tag); |
| break; |
| } |
| case 8: { |
| DeprecatedField = input.ReadInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| |
| public bool HasDeprecatedField { |
| get { return result.HasDeprecatedField; } |
| } |
| public int DeprecatedField { |
| get { return result.DeprecatedField; } |
| set { SetDeprecatedField(value); } |
| } |
| public Builder SetDeprecatedField(int value) { |
| result.hasDeprecatedField = true; |
| result.deprecatedField_ = value; |
| return this; |
| } |
| public Builder ClearDeprecatedField() { |
| result.hasDeprecatedField = false; |
| result.deprecatedField_ = 0; |
| return this; |
| } |
| } |
| static TestDeprecatedLite() { |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| } |
| } |
| |
| #endregion |
| |
| } |