Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: third_party/protobuf/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #region Copyright notice and license 1 #region Copyright notice and license
2 // Protocol Buffers - Google's data interchange format 2 // Protocol Buffers - Google's data interchange format
3 // Copyright 2008 Google Inc. All rights reserved. 3 // Copyright 2008 Google Inc. All rights reserved.
4 // https://developers.google.com/protocol-buffers/ 4 // https://developers.google.com/protocol-buffers/
5 // 5 //
6 // Redistribution and use in source and binary forms, with or without 6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions are 7 // modification, are permitted provided that the following conditions are
8 // met: 8 // met:
9 // 9 //
10 // * Redistributions of source code must retain the above copyright 10 // * Redistributions of source code must retain the above copyright
(...skipping 16 matching lines...) Expand all
27 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #endregion 31 #endregion
32 32
33 using System; 33 using System;
34 using System.Collections.Generic; 34 using System.Collections.Generic;
35 using System.Collections.ObjectModel; 35 using System.Collections.ObjectModel;
36 using System.Linq; 36 using System.Linq;
37 #if DOTNET35
38 // Needed for ReadOnlyDictionary, which does not exist in .NET 3.5
39 using Google.Protobuf.Collections;
40 #endif
41 37
42 namespace Google.Protobuf.Reflection 38 namespace Google.Protobuf.Reflection
43 { 39 {
44 /// <summary> 40 /// <summary>
45 /// Describes a message type. 41 /// Describes a message type.
46 /// </summary> 42 /// </summary>
47 public sealed class MessageDescriptor : DescriptorBase 43 public sealed class MessageDescriptor : DescriptorBase
48 { 44 {
49 private static readonly HashSet<string> WellKnownTypeNames = new HashSet <string> 45 private static readonly HashSet<string> WellKnownTypeNames = new HashSet <string>
50 { 46 {
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 if (fieldDescriptor == null) 308 if (fieldDescriptor == null)
313 { 309 {
314 throw new KeyNotFoundException("No such field name"); 310 throw new KeyNotFoundException("No such field name");
315 } 311 }
316 return fieldDescriptor; 312 return fieldDescriptor;
317 } 313 }
318 } 314 }
319 } 315 }
320 } 316 }
321 } 317 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698