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

Unified Diff: third_party/grpc/src/csharp/Grpc.Core/CompressionLevel.cs

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/grpc/src/csharp/Grpc.Core/CompressionLevel.cs
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs b/third_party/grpc/src/csharp/Grpc.Core/CompressionLevel.cs
similarity index 73%
copy from third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs
copy to third_party/grpc/src/csharp/Grpc.Core/CompressionLevel.cs
index 318d58c968a58a35a3ccd45ee1c7b1f0df275546..399652b85e5ad6565f355d838934eaa442f80813 100644
--- a/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/IDescriptor.cs
+++ b/third_party/grpc/src/csharp/Grpc.Core/CompressionLevel.cs
@@ -1,7 +1,7 @@
#region Copyright notice and license
-// Protocol Buffers - Google's data interchange format
-// Copyright 2008 Google Inc. All rights reserved.
-// https://developers.google.com/protocol-buffers/
+
+// Copyright 2015, Google Inc.
+// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
@@ -28,28 +28,36 @@
// 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
-namespace Google.Protobuf.Reflection
+using System;
+
+namespace Grpc.Core
{
/// <summary>
- /// Interface implemented by all descriptor types.
+ /// Compression level based on grpc_compression_level from grpc/compression.h
/// </summary>
- public interface IDescriptor
+ public enum CompressionLevel
{
/// <summary>
- /// Returns the name of the entity (message, field etc) being described.
+ /// No compression.
+ /// </summary>
+ None = 0,
+
+ /// <summary>
+ /// Low compression.
/// </summary>
- string Name { get; }
+ Low,
/// <summary>
- /// Returns the fully-qualified name of the entity being described.
+ /// Medium compression.
/// </summary>
- string FullName { get; }
+ Medium,
/// <summary>
- /// Returns the descriptor for the .proto file that this entity is part of.
+ /// High compression.
/// </summary>
- FileDescriptor File { get; }
- }
-}
+ High,
+ }
+}
« no previous file with comments | « third_party/grpc/src/csharp/Grpc.Core/ClientBase.cs ('k') | third_party/grpc/src/csharp/Grpc.Core/ContextPropagationToken.cs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698