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

Unified Diff: third_party/grpc/src/proto/grpc/testing/echo.proto

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/proto/grpc/testing/echo.proto
diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto b/third_party/grpc/src/proto/grpc/testing/echo.proto
similarity index 73%
copy from third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto
copy to third_party/grpc/src/proto/grpc/testing/echo.proto
index 18c59cbb96308c72f0a1d432a2ef79d81fccbdb6..06c3bafbad0937897ef11cfb8a245c768113d393 100644
--- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto
+++ b/third_party/grpc/src/proto/grpc/testing/echo.proto
@@ -1,6 +1,6 @@
-// Protocol Buffers - Google's data interchange format
-// Copyright 2008 Google Inc. All rights reserved.
-// https://developers.google.com/protocol-buffers/
+
+// Copyright 2015-2016, 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,26 +28,20 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Proto to test Proto3 Any serialization.
syntax = "proto3";
-package google.protobuf.testing.anys;
-option java_package = "com.google.protobuf.testing.anys";
-
-import "google/protobuf/any.proto";
+import "src/proto/grpc/testing/echo_messages.proto";
-message AnyIn {
- string something = 1;
-}
-
-message AnyOut {
- google.protobuf.Any any = 1;
-}
+package grpc.testing;
-message AnyM {
- string foo = 1;
+service EchoTestService {
+ rpc Echo(EchoRequest) returns (EchoResponse);
+ rpc RequestStream(stream EchoRequest) returns (EchoResponse);
+ rpc ResponseStream(EchoRequest) returns (stream EchoResponse);
+ rpc BidiStream(stream EchoRequest) returns (stream EchoResponse);
+ rpc Unimplemented(EchoRequest) returns (EchoResponse);
}
-service TestService {
- rpc Call(AnyIn) returns (AnyOut);
+service UnimplementedService {
+ rpc Unimplemented(EchoRequest) returns (EchoResponse);
}

Powered by Google App Engine
This is Rietveld 408576698