| Index: third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs
|
| diff --git a/third_party/protobuf/python/google/protobuf/internal/more_messages.proto b/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs
|
| similarity index 68%
|
| copy from third_party/protobuf/python/google/protobuf/internal/more_messages.proto
|
| copy to third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs
|
| index c701b4460b761a7f9db44e1159a1aadf7206a64a..318d58c968a58a35a3ccd45ee1c7b1f0df275546 100644
|
| --- a/third_party/protobuf/python/google/protobuf/internal/more_messages.proto
|
| +++ b/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs
|
| @@ -1,6 +1,7 @@
|
| +#region Copyright notice and license
|
| // Protocol Buffers - Google's data interchange format
|
| // Copyright 2008 Google Inc. All rights reserved.
|
| -// http://code.google.com/p/protobuf/
|
| +// https://developers.google.com/protocol-buffers/
|
| //
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| @@ -27,25 +28,28 @@
|
| // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +#endregion
|
|
|
| -// Author: robinson@google.com (Will Robinson)
|
| +namespace Google.Protobuf.Reflection
|
| +{
|
| + /// <summary>
|
| + /// Interface implemented by all descriptor types.
|
| + /// </summary>
|
| + public interface IDescriptor
|
| + {
|
| + /// <summary>
|
| + /// Returns the name of the entity (message, field etc) being described.
|
| + /// </summary>
|
| + string Name { get; }
|
|
|
| + /// <summary>
|
| + /// Returns the fully-qualified name of the entity being described.
|
| + /// </summary>
|
| + string FullName { get; }
|
|
|
| -package google.protobuf.internal;
|
| -
|
| -// A message where tag numbers are listed out of order, to allow us to test our
|
| -// canonicalization of serialized output, which should always be in tag order.
|
| -// We also mix in some extensions for extra fun.
|
| -message OutOfOrderFields {
|
| - optional sint32 optional_sint32 = 5;
|
| - extensions 4 to 4;
|
| - optional uint32 optional_uint32 = 3;
|
| - extensions 2 to 2;
|
| - optional int32 optional_int32 = 1;
|
| -};
|
| -
|
| -
|
| -extend OutOfOrderFields {
|
| - optional uint64 optional_uint64 = 4;
|
| - optional int64 optional_int64 = 2;
|
| -}
|
| + /// <summary>
|
| + /// Returns the descriptor for the .proto file that this entity is part of.
|
| + /// </summary>
|
| + FileDescriptor File { get; }
|
| + }
|
| +}
|
|
|