diff options
author | Jon Skeet <jonskeet@google.com> | 2015-07-22 11:39:38 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-07-22 11:39:38 +0100 |
commit | 47bf49b9fab55b2046398ac0450d6ec97f663e48 (patch) | |
tree | a40094b09d13bea365dd01737e6cea49790121fc /csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs | |
parent | 4668c3dc3921e157b7904e26a1ddd84287b881be (diff) | |
download | protobuf-47bf49b9fab55b2046398ac0450d6ec97f663e48.tar.gz protobuf-47bf49b9fab55b2046398ac0450d6ec97f663e48.tar.bz2 protobuf-47bf49b9fab55b2046398ac0450d6ec97f663e48.zip |
Generated code for previous commit.
Diffstat (limited to 'csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs')
-rw-r--r-- | csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs | 10 |
1 files changed, 4 insertions, 6 deletions
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<Duration> _parser = new pb::MessageParser<Duration>(() => new Duration()); public static pb::MessageParser<Duration> 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 { |