Index: third_party/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs |
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs b/third_party/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs |
similarity index 81% |
copy from third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs |
copy to third_party/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs |
index 9f620eb4012e35421383ce544f51d7087f4100a1..5663a69902e59858b1fa8b170f652fadb0b595a8 100644 |
--- a/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs |
+++ b/third_party/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs |
@@ -1,6 +1,6 @@ |
#region Copyright notice and license |
// Protocol Buffers - Google's data interchange format |
-// Copyright 2008 Google Inc. All rights reserved. |
+// Copyright 2016 Google Inc. All rights reserved. |
// https://developers.google.com/protocol-buffers/ |
// |
// Redistribution and use in source and binary forms, with or without |
@@ -30,13 +30,16 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
#endregion |
-namespace Google.Protobuf.WellKnownTypes |
+namespace Google.Protobuf.TestProtos |
{ |
- public static partial class WrappersReflection |
+ /// <summary> |
+ /// A message with custom diagnostics (to test that they work). |
+ /// </summary> |
+ public partial class ForeignMessage : ICustomDiagnosticMessage |
{ |
- /// <summary> |
- /// Field number for the single "value" field in all wrapper types. |
- /// </summary> |
- internal const int WrapperValueFieldNumber = Int32Value.ValueFieldNumber; |
+ public string ToDiagnosticString() |
+ { |
+ return $"{{ \"c\": {C}, \"@cInHex\": \"{C:x}\" }}"; |
+ } |
} |
} |