Index: third_party/grpc/src/proto/grpc/testing/echo_messages.proto |
diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto b/third_party/grpc/src/proto/grpc/testing/echo_messages.proto |
similarity index 69% |
copy from third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto |
copy to third_party/grpc/src/proto/grpc/testing/echo_messages.proto |
index 18c59cbb96308c72f0a1d432a2ef79d81fccbdb6..d05a35548d19957517cd534be75cb4f9110135cd 100644 |
--- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto |
+++ b/third_party/grpc/src/proto/grpc/testing/echo_messages.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,34 @@ |
// (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"; |
+package grpc.testing; |
-message AnyIn { |
- string something = 1; |
+message RequestParams { |
+ bool echo_deadline = 1; |
+ int32 client_cancel_after_us = 2; |
+ int32 server_cancel_after_us = 3; |
+ bool echo_metadata = 4; |
+ bool check_auth_context = 5; |
+ int32 response_message_length = 6; |
+ bool echo_peer = 7; |
+ string expected_client_identity = 8; // will force check_auth_context. |
+ bool skip_cancelled_check = 9; |
} |
-message AnyOut { |
- google.protobuf.Any any = 1; |
+message EchoRequest { |
+ string message = 1; |
+ RequestParams param = 2; |
} |
-message AnyM { |
- string foo = 1; |
+message ResponseParams { |
+ int64 request_deadline = 1; |
+ string host = 2; |
+ string peer = 3; |
} |
-service TestService { |
- rpc Call(AnyIn) returns (AnyOut); |
+message EchoResponse { |
+ string message = 1; |
+ ResponseParams param = 2; |
} |