From 47bf49b9fab55b2046398ac0450d6ec97f663e48 Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Wed, 22 Jul 2015 11:39:38 +0100 Subject: Generated code for previous commit. --- csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs') diff --git a/csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs b/csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs index d00e8b74..487911a7 100644 --- a/csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs +++ b/csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs @@ -27,10 +27,12 @@ namespace Google.Protobuf.WellKnownTypes { "b2J1ZiIqCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIg", "ASgFQlAKE2NvbS5nb29nbGUucHJvdG9idWZCDUR1cmF0aW9uUHJvdG9QAaAB", "AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv", - "dG8z")); + "dG8z")); descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, new pbr::FileDescriptor[] { }, - new global::System.Type[] { typeof(global::Google.Protobuf.WellKnownTypes.Duration), }); + new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { + new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Duration), new[]{ "Seconds", "Nanos" }, null, null, null) + })); } #endregion @@ -42,8 +44,6 @@ namespace Google.Protobuf.WellKnownTypes { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Duration()); public static pb::MessageParser Parser { get { return _parser; } } - private static readonly string[] _fieldNames = new string[] { "nanos", "seconds" }; - private static readonly uint[] _fieldTags = new uint[] { 16, 8 }; public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.Proto.Duration.Descriptor.MessageTypes[0]; } } @@ -79,7 +79,6 @@ namespace Google.Protobuf.WellKnownTypes { public const int SecondsFieldNumber = 1; private long seconds_; - [pbr::ProtobufField(1, "seconds")] public long Seconds { get { return seconds_; } set { @@ -90,7 +89,6 @@ namespace Google.Protobuf.WellKnownTypes { public const int NanosFieldNumber = 2; private int nanos_; - [pbr::ProtobufField(2, "nanos")] public int Nanos { get { return nanos_; } set { -- cgit v1.2.3