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