Fix for repeated extensions.

pull/288/head
csharptest 14 years ago
parent 80824a51c2
commit 487da48ad2
  1. 8
      src/ProtoGen/ExtensionGenerator.cs
  2. 4
      src/ProtocolBuffers/EnumLite.cs
  3. 62
      src/ProtocolBuffers/GeneratedExtensionLite.cs
  4. 18
      src/ProtocolBuffersLite.Test/LiteTest.cs
  5. 190
      src/ProtocolBuffersLite.Test/TestProtos/UnitTestLiteProtoFile.cs

@ -73,7 +73,8 @@ namespace Google.ProtocolBuffers.ProtoGen {
if (!Descriptor.IsCLSCompliant && Descriptor.File.CSharpOptions.ClsCompliance) { if (!Descriptor.IsCLSCompliant && Descriptor.File.CSharpOptions.ClsCompliance) {
writer.WriteLine("[global::System.CLSCompliant(false)]"); writer.WriteLine("[global::System.CLSCompliant(false)]");
} }
writer.WriteLine("{0} static pb::GeneratedExtensionLite<{1}, {2}> {3};", ClassAccessLevel, extends, type, name); writer.WriteLine("{0} static pb::{4}<{1}, {2}> {3};", ClassAccessLevel, extends, type, name,
Descriptor.IsRepeated ? "GeneratedRepeatExtensionLite" : "GeneratedExtensionLite");
} else if (Descriptor.IsRepeated) { } else if (Descriptor.IsRepeated) {
if (!Descriptor.IsCLSCompliant && Descriptor.File.CSharpOptions.ClsCompliance) { if (!Descriptor.IsCLSCompliant && Descriptor.File.CSharpOptions.ClsCompliance) {
writer.WriteLine("[global::System.CLSCompliant(false)]"); writer.WriteLine("[global::System.CLSCompliant(false)]");
@ -91,10 +92,11 @@ namespace Google.ProtocolBuffers.ProtoGen {
if (UseLiteRuntime) { if (UseLiteRuntime) {
writer.WriteLine("{0}.{1} = ", scope, name); writer.WriteLine("{0}.{1} = ", scope, name);
writer.Indent(); writer.Indent();
writer.WriteLine("new pb::GeneratedExtensionLite<{0}, {1}>(", extends, type); writer.WriteLine("new pb::{0}<{1}, {2}>(", Descriptor.IsRepeated ? "GeneratedRepeatExtensionLite" : "GeneratedExtensionLite", extends, type);
writer.Indent(); writer.Indent();
writer.WriteLine("{0}.DefaultInstance,", extends); writer.WriteLine("{0}.DefaultInstance,", extends);
writer.WriteLine("{0},", Descriptor.HasDefaultValue ? DefaultValue : IsNullableType ? "null" : "default(" + type + ")"); if(!Descriptor.IsRepeated)
writer.WriteLine("{0},", Descriptor.HasDefaultValue ? DefaultValue : IsNullableType ? "null" : "default(" + type + ")");
writer.WriteLine("{0},", (Descriptor.MappedType == MappedType.Message) ? type + ".DefaultInstance" : "null"); writer.WriteLine("{0},", (Descriptor.MappedType == MappedType.Message) ? type + ".DefaultInstance" : "null");
writer.WriteLine("{0},", (Descriptor.MappedType == MappedType.Enum) ? "new EnumLiteMap<" + type + ">()" : "null"); writer.WriteLine("{0},", (Descriptor.MappedType == MappedType.Enum) ? "new EnumLiteMap<" + type + ">()" : "null");
writer.WriteLine("{0},", Descriptor.Index); writer.WriteLine("{0},", Descriptor.Index);

@ -66,7 +66,7 @@ namespace Google.ProtocolBuffers {
} }
public class EnumLiteMap<TEnum> : IEnumLiteMap<IEnumLite> public class EnumLiteMap<TEnum> : IEnumLiteMap<IEnumLite>
where TEnum : struct, IComparable, IFormattable, IConvertible { where TEnum : struct, IComparable, IFormattable {
struct EnumValue : IEnumLite, IComparable<IEnumLite> { struct EnumValue : IEnumLite, IComparable<IEnumLite> {
int _value; int _value;
@ -86,7 +86,7 @@ namespace Google.ProtocolBuffers {
public EnumLiteMap() { public EnumLiteMap() {
items = new SortedList<int, IEnumLite>(); items = new SortedList<int, IEnumLite>();
foreach (TEnum evalue in Enum.GetValues(typeof(TEnum))) foreach (TEnum evalue in Enum.GetValues(typeof(TEnum)))
items.Add(evalue.ToInt32(CultureInfo.InvariantCulture), new EnumValue(evalue.ToInt32(CultureInfo.InvariantCulture))); items.Add(Convert.ToInt32(evalue), new EnumValue(Convert.ToInt32(evalue)));
} }
IEnumLite IEnumLiteMap.FindValueByNumber(int number) { IEnumLite IEnumLiteMap.FindValueByNumber(int number) {

@ -127,6 +127,31 @@ namespace Google.ProtocolBuffers {
} }
} }
public class GeneratedRepeatExtensionLite<TContainingType, TExtensionType> : GeneratedExtensionLite<TContainingType, IList<TExtensionType>>
where TContainingType : IMessageLite {
public GeneratedRepeatExtensionLite(TContainingType containingTypeDefaultInstance,
IMessageLite messageDefaultInstance, IEnumLiteMap enumTypeMap, int number, FieldType type, bool isPacked) :
base(containingTypeDefaultInstance, new List<TExtensionType>(), messageDefaultInstance, enumTypeMap, number, type, isPacked) {
}
public override object ToReflectionType(object value) {
IList<TExtensionType> result = new List<TExtensionType>();
foreach (object element in (IEnumerable)value) {
result.Add((TExtensionType)SingularToReflectionType(element));
}
return result;
}
public override object FromReflectionType(object value) {
// Must convert the whole list.
List<TExtensionType> result = new List<TExtensionType>();
foreach (object element in (IEnumerable)value) {
result.Add((TExtensionType)SingularFromReflectionType(element));
}
return result;
}
}
public class GeneratedExtensionLite<TContainingType, TExtensionType> : IGeneratedExtensionLite public class GeneratedExtensionLite<TContainingType, TExtensionType> : IGeneratedExtensionLite
where TContainingType : IMessageLite { where TContainingType : IMessageLite {
@ -166,8 +191,8 @@ namespace Google.ProtocolBuffers {
false /* isRepeated */, false /* isPacked */)) { false /* isRepeated */, false /* isPacked */)) {
} }
/** For use by generated code only. */ /** Repeating fields: For use by generated code only. */
public GeneratedExtensionLite( protected GeneratedExtensionLite(
TContainingType containingTypeDefaultInstance, TContainingType containingTypeDefaultInstance,
TExtensionType defaultValue, TExtensionType defaultValue,
IMessageLite messageDefaultInstance, IMessageLite messageDefaultInstance,
@ -231,48 +256,21 @@ namespace Google.ProtocolBuffers {
/// for enums use EnumValueDescriptors but the native accessors use /// for enums use EnumValueDescriptors but the native accessors use
/// the generated enum type. /// the generated enum type.
/// </summary> /// </summary>
public object ToReflectionType(object value) { public virtual object ToReflectionType(object value) {
if (descriptor.IsRepeated) {
if (descriptor.MappedType == MappedType.Enum) {
// Must convert the whole list.
IList<object> result = new List<object>();
foreach (object element in (IEnumerable)value) {
result.Add(SingularToReflectionType(element));
}
return result;
} else {
return value;
}
} else {
return SingularToReflectionType(value); return SingularToReflectionType(value);
}
} }
/// <summary> /// <summary>
/// Like ToReflectionType(object) but for a single element. /// Like ToReflectionType(object) but for a single element.
/// </summary> /// </summary>
internal Object SingularToReflectionType(object value) { public object SingularToReflectionType(object value) {
return descriptor.MappedType == MappedType.Enum return descriptor.MappedType == MappedType.Enum
? descriptor.EnumType.FindValueByNumber((int)value) ? descriptor.EnumType.FindValueByNumber((int)value)
: value; : value;
} }
public object FromReflectionType(object value) { public virtual object FromReflectionType(object value) {
if (descriptor.IsRepeated) {
if (Descriptor.MappedType == MappedType.Message ||
Descriptor.MappedType == MappedType.Enum) {
// Must convert the whole list.
List<TExtensionType> result = new List<TExtensionType>();
foreach (object element in (IEnumerable)value) {
result.Add((TExtensionType)SingularFromReflectionType(element));
}
return result;
} else {
return value;
}
} else {
return SingularFromReflectionType(value); return SingularFromReflectionType(value);
}
} }
public object SingularFromReflectionType(object value) { public object SingularFromReflectionType(object value) {

@ -32,6 +32,8 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endregion #endregion
using System;
using System.Collections.Generic;
using System.IO; using System.IO;
using Google.ProtocolBuffers.Descriptors; using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.TestProtos; using Google.ProtocolBuffers.TestProtos;
@ -81,8 +83,7 @@ namespace Google.ProtocolBuffers {
TestAllExtensionsLite message = TestAllExtensionsLite message =
TestAllExtensionsLite.CreateBuilder() TestAllExtensionsLite.CreateBuilder()
.SetExtension(UnitTestLiteProtoFile.OptionalInt32ExtensionLite, 123) .SetExtension(UnitTestLiteProtoFile.OptionalInt32ExtensionLite, 123)
#warning broken .AddExtension(UnitTestLiteProtoFile.RepeatedStringExtensionLite, "hello")
// .AddExtension(UnitTestLiteProtoFile.RepeatedStringExtensionLite, "hello")
.SetExtension(UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite, .SetExtension(UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite,
TestAllTypesLite.Types.NestedEnum.BAZ) TestAllTypesLite.Types.NestedEnum.BAZ)
.SetExtension(UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite, .SetExtension(UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite,
@ -96,13 +97,12 @@ namespace Google.ProtocolBuffers {
Assert.AreEqual(123, (int)message2.GetExtension( Assert.AreEqual(123, (int)message2.GetExtension(
UnitTestLiteProtoFile.OptionalInt32ExtensionLite)); UnitTestLiteProtoFile.OptionalInt32ExtensionLite));
#warning broken type infrence Assert.AreEqual(1, message2.GetExtensionCount(
//Assert.AreEqual(1, message2.GetExtensionCount( UnitTestLiteProtoFile.RepeatedStringExtensionLite));
// UnitTestLiteProtoFile.RepeatedStringExtensionLite)); Assert.AreEqual(1, message2.GetExtension(
//Assert.AreEqual(1, message2.GetExtension( UnitTestLiteProtoFile.RepeatedStringExtensionLite).Count);
// UnitTestLiteProtoFile.RepeatedStringExtensionLite, 0)); Assert.AreEqual("hello", message2.GetExtension(
//Assert.AreEqual("hello", message2.GetExtension( UnitTestLiteProtoFile.RepeatedStringExtensionLite, 0));
// UnitTestLiteProtoFile.RepeatedStringExtensionLite, 0));
Assert.AreEqual(TestAllTypesLite.Types.NestedEnum.BAZ, message2.GetExtension( Assert.AreEqual(TestAllTypesLite.Types.NestedEnum.BAZ, message2.GetExtension(
UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite)); UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite));
Assert.AreEqual(7, message2.GetExtension( Assert.AreEqual(7, message2.GetExtension(

@ -149,57 +149,57 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int OptionalCordExtensionLiteFieldNumber = 25; public const int OptionalCordExtensionLiteFieldNumber = 25;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalCordExtensionLite; public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalCordExtensionLite;
public const int RepeatedInt32ExtensionLiteFieldNumber = 31; public const int RepeatedInt32ExtensionLiteFieldNumber = 31;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedInt32ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedInt32ExtensionLite;
public const int RepeatedInt64ExtensionLiteFieldNumber = 32; public const int RepeatedInt64ExtensionLiteFieldNumber = 32;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedInt64ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedInt64ExtensionLite;
public const int RepeatedUint32ExtensionLiteFieldNumber = 33; public const int RepeatedUint32ExtensionLiteFieldNumber = 33;
[global::System.CLSCompliant(false)] [global::System.CLSCompliant(false)]
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedUint32ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedUint32ExtensionLite;
public const int RepeatedUint64ExtensionLiteFieldNumber = 34; public const int RepeatedUint64ExtensionLiteFieldNumber = 34;
[global::System.CLSCompliant(false)] [global::System.CLSCompliant(false)]
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedUint64ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedUint64ExtensionLite;
public const int RepeatedSint32ExtensionLiteFieldNumber = 35; public const int RepeatedSint32ExtensionLiteFieldNumber = 35;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSint32ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSint32ExtensionLite;
public const int RepeatedSint64ExtensionLiteFieldNumber = 36; public const int RepeatedSint64ExtensionLiteFieldNumber = 36;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSint64ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSint64ExtensionLite;
public const int RepeatedFixed32ExtensionLiteFieldNumber = 37; public const int RepeatedFixed32ExtensionLiteFieldNumber = 37;
[global::System.CLSCompliant(false)] [global::System.CLSCompliant(false)]
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedFixed32ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedFixed32ExtensionLite;
public const int RepeatedFixed64ExtensionLiteFieldNumber = 38; public const int RepeatedFixed64ExtensionLiteFieldNumber = 38;
[global::System.CLSCompliant(false)] [global::System.CLSCompliant(false)]
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedFixed64ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedFixed64ExtensionLite;
public const int RepeatedSfixed32ExtensionLiteFieldNumber = 39; public const int RepeatedSfixed32ExtensionLiteFieldNumber = 39;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSfixed32ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSfixed32ExtensionLite;
public const int RepeatedSfixed64ExtensionLiteFieldNumber = 40; public const int RepeatedSfixed64ExtensionLiteFieldNumber = 40;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSfixed64ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSfixed64ExtensionLite;
public const int RepeatedFloatExtensionLiteFieldNumber = 41; public const int RepeatedFloatExtensionLiteFieldNumber = 41;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> RepeatedFloatExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> RepeatedFloatExtensionLite;
public const int RepeatedDoubleExtensionLiteFieldNumber = 42; public const int RepeatedDoubleExtensionLiteFieldNumber = 42;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> RepeatedDoubleExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> RepeatedDoubleExtensionLite;
public const int RepeatedBoolExtensionLiteFieldNumber = 43; public const int RepeatedBoolExtensionLiteFieldNumber = 43;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> RepeatedBoolExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> RepeatedBoolExtensionLite;
public const int RepeatedStringExtensionLiteFieldNumber = 44; public const int RepeatedStringExtensionLiteFieldNumber = 44;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringExtensionLite;
public const int RepeatedBytesExtensionLiteFieldNumber = 45; public const int RepeatedBytesExtensionLiteFieldNumber = 45;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> RepeatedBytesExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> RepeatedBytesExtensionLite;
public const int RepeatedGroupExtensionLiteFieldNumber = 46; public const int RepeatedGroupExtensionLiteFieldNumber = 46;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite> RepeatedGroupExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite> RepeatedGroupExtensionLite;
public const int RepeatedNestedMessageExtensionLiteFieldNumber = 48; public const int RepeatedNestedMessageExtensionLiteFieldNumber = 48;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageExtensionLite;
public const int RepeatedForeignMessageExtensionLiteFieldNumber = 49; public const int RepeatedForeignMessageExtensionLiteFieldNumber = 49;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageExtensionLite;
public const int RepeatedImportMessageExtensionLiteFieldNumber = 50; public const int RepeatedImportMessageExtensionLiteFieldNumber = 50;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageExtensionLite;
public const int RepeatedNestedEnumExtensionLiteFieldNumber = 51; public const int RepeatedNestedEnumExtensionLiteFieldNumber = 51;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumExtensionLite;
public const int RepeatedForeignEnumExtensionLiteFieldNumber = 52; public const int RepeatedForeignEnumExtensionLiteFieldNumber = 52;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumExtensionLite;
public const int RepeatedImportEnumExtensionLiteFieldNumber = 53; public const int RepeatedImportEnumExtensionLiteFieldNumber = 53;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumExtensionLite;
public const int RepeatedStringPieceExtensionLiteFieldNumber = 54; public const int RepeatedStringPieceExtensionLiteFieldNumber = 54;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringPieceExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringPieceExtensionLite;
public const int RepeatedCordExtensionLiteFieldNumber = 55; public const int RepeatedCordExtensionLiteFieldNumber = 55;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedCordExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedCordExtensionLite;
public const int DefaultInt32ExtensionLiteFieldNumber = 61; public const int DefaultInt32ExtensionLiteFieldNumber = 61;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultInt32ExtensionLite; public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultInt32ExtensionLite;
public const int DefaultInt64ExtensionLiteFieldNumber = 62; public const int DefaultInt64ExtensionLiteFieldNumber = 62;
@ -245,37 +245,37 @@ namespace Google.ProtocolBuffers.TestProtos {
public const int DefaultCordExtensionLiteFieldNumber = 85; public const int DefaultCordExtensionLiteFieldNumber = 85;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultCordExtensionLite; public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultCordExtensionLite;
public const int PackedInt32ExtensionLiteFieldNumber = 90; public const int PackedInt32ExtensionLiteFieldNumber = 90;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedInt32ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedInt32ExtensionLite;
public const int PackedInt64ExtensionLiteFieldNumber = 91; public const int PackedInt64ExtensionLiteFieldNumber = 91;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedInt64ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedInt64ExtensionLite;
public const int PackedUint32ExtensionLiteFieldNumber = 92; public const int PackedUint32ExtensionLiteFieldNumber = 92;
[global::System.CLSCompliant(false)] [global::System.CLSCompliant(false)]
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedUint32ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedUint32ExtensionLite;
public const int PackedUint64ExtensionLiteFieldNumber = 93; public const int PackedUint64ExtensionLiteFieldNumber = 93;
[global::System.CLSCompliant(false)] [global::System.CLSCompliant(false)]
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedUint64ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedUint64ExtensionLite;
public const int PackedSint32ExtensionLiteFieldNumber = 94; public const int PackedSint32ExtensionLiteFieldNumber = 94;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSint32ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSint32ExtensionLite;
public const int PackedSint64ExtensionLiteFieldNumber = 95; public const int PackedSint64ExtensionLiteFieldNumber = 95;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSint64ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSint64ExtensionLite;
public const int PackedFixed32ExtensionLiteFieldNumber = 96; public const int PackedFixed32ExtensionLiteFieldNumber = 96;
[global::System.CLSCompliant(false)] [global::System.CLSCompliant(false)]
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedFixed32ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedFixed32ExtensionLite;
public const int PackedFixed64ExtensionLiteFieldNumber = 97; public const int PackedFixed64ExtensionLiteFieldNumber = 97;
[global::System.CLSCompliant(false)] [global::System.CLSCompliant(false)]
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedFixed64ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedFixed64ExtensionLite;
public const int PackedSfixed32ExtensionLiteFieldNumber = 98; public const int PackedSfixed32ExtensionLiteFieldNumber = 98;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSfixed32ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSfixed32ExtensionLite;
public const int PackedSfixed64ExtensionLiteFieldNumber = 99; public const int PackedSfixed64ExtensionLiteFieldNumber = 99;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSfixed64ExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSfixed64ExtensionLite;
public const int PackedFloatExtensionLiteFieldNumber = 100; public const int PackedFloatExtensionLiteFieldNumber = 100;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float> PackedFloatExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float> PackedFloatExtensionLite;
public const int PackedDoubleExtensionLiteFieldNumber = 101; public const int PackedDoubleExtensionLiteFieldNumber = 101;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double> PackedDoubleExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double> PackedDoubleExtensionLite;
public const int PackedBoolExtensionLiteFieldNumber = 102; public const int PackedBoolExtensionLiteFieldNumber = 102;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool> PackedBoolExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool> PackedBoolExtensionLite;
public const int PackedEnumExtensionLiteFieldNumber = 103; public const int PackedEnumExtensionLiteFieldNumber = 103;
public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumExtensionLite; public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumExtensionLite;
#endregion #endregion
#region Static variables #region Static variables
@ -485,218 +485,194 @@ namespace Google.ProtocolBuffers.TestProtos {
23, 23,
pbd::FieldType.String); pbd::FieldType.String);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(int),
null, null,
null, null,
24, 24,
pbd::FieldType.Int32, pbd::FieldType.Int32,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(long),
null, null,
null, null,
25, 25,
pbd::FieldType.Int64, pbd::FieldType.Int64,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(uint),
null, null,
null, null,
26, 26,
pbd::FieldType.UInt32, pbd::FieldType.UInt32,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(ulong),
null, null,
null, null,
27, 27,
pbd::FieldType.UInt64, pbd::FieldType.UInt64,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(int),
null, null,
null, null,
28, 28,
pbd::FieldType.SInt32, pbd::FieldType.SInt32,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(long),
null, null,
null, null,
29, 29,
pbd::FieldType.SInt64, pbd::FieldType.SInt64,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(uint),
null, null,
null, null,
30, 30,
pbd::FieldType.Fixed32, pbd::FieldType.Fixed32,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(ulong),
null, null,
null, null,
31, 31,
pbd::FieldType.Fixed64, pbd::FieldType.Fixed64,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(int),
null, null,
null, null,
32, 32,
pbd::FieldType.SFixed32, pbd::FieldType.SFixed32,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(long),
null, null,
null, null,
33, 33,
pbd::FieldType.SFixed64, pbd::FieldType.SFixed64,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(float),
null, null,
null, null,
34, 34,
pbd::FieldType.Float, pbd::FieldType.Float,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(double),
null, null,
null, null,
35, 35,
pbd::FieldType.Double, pbd::FieldType.Double,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(bool),
null, null,
null, null,
36, 36,
pbd::FieldType.Bool, pbd::FieldType.Bool,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
null, null,
null, null,
null,
37, 37,
pbd::FieldType.String, pbd::FieldType.String,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
null, null,
null, null,
null,
38, 38,
pbd::FieldType.Bytes, pbd::FieldType.Bytes,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
null,
global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance,
null, null,
39, 39,
pbd::FieldType.Group, pbd::FieldType.Group,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
null,
global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
null, null,
40, 40,
pbd::FieldType.Message, pbd::FieldType.Message,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
null,
global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
null, null,
41, 41,
pbd::FieldType.Message, pbd::FieldType.Message,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
null,
global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
null, null,
42, 42,
pbd::FieldType.Message, pbd::FieldType.Message,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum),
null, null,
new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(), new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
43, 43,
pbd::FieldType.Enum, pbd::FieldType.Enum,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite),
null, null,
new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(), new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
44, 44,
pbd::FieldType.Enum, pbd::FieldType.Enum,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
default(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite),
null, null,
new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(), new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
45, 45,
pbd::FieldType.Enum, pbd::FieldType.Enum,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
null, null,
null, null,
null,
46, 46,
pbd::FieldType.String, pbd::FieldType.String,
false); false);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
null, null,
null, null,
null,
47, 47,
pbd::FieldType.String, pbd::FieldType.String,
false); false);
@ -861,126 +837,112 @@ namespace Google.ProtocolBuffers.TestProtos {
67, 67,
pbd::FieldType.String); pbd::FieldType.String);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(int),
null, null,
null, null,
68, 68,
pbd::FieldType.Int32, pbd::FieldType.Int32,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(long),
null, null,
null, null,
69, 69,
pbd::FieldType.Int64, pbd::FieldType.Int64,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(uint),
null, null,
null, null,
70, 70,
pbd::FieldType.UInt32, pbd::FieldType.UInt32,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(ulong),
null, null,
null, null,
71, 71,
pbd::FieldType.UInt64, pbd::FieldType.UInt64,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(int),
null, null,
null, null,
72, 72,
pbd::FieldType.SInt32, pbd::FieldType.SInt32,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(long),
null, null,
null, null,
73, 73,
pbd::FieldType.SInt64, pbd::FieldType.SInt64,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(uint),
null, null,
null, null,
74, 74,
pbd::FieldType.Fixed32, pbd::FieldType.Fixed32,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(ulong),
null, null,
null, null,
75, 75,
pbd::FieldType.Fixed64, pbd::FieldType.Fixed64,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(int),
null, null,
null, null,
76, 76,
pbd::FieldType.SFixed32, pbd::FieldType.SFixed32,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(long),
null, null,
null, null,
77, 77,
pbd::FieldType.SFixed64, pbd::FieldType.SFixed64,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(float),
null, null,
null, null,
78, 78,
pbd::FieldType.Float, pbd::FieldType.Float,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(double),
null, null,
null, null,
79, 79,
pbd::FieldType.Double, pbd::FieldType.Double,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(bool),
null, null,
null, null,
80, 80,
pbd::FieldType.Bool, pbd::FieldType.Bool,
true); true);
global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite = global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite =
new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>( new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite),
null, null,
new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(), new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
81, 81,

Loading…
Cancel
Save