Index: third_party/grpc/src/proto/grpc/testing/payloads.proto |
diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto b/third_party/grpc/src/proto/grpc/testing/payloads.proto |
similarity index 74% |
copy from third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto |
copy to third_party/grpc/src/proto/grpc/testing/payloads.proto |
index 18c59cbb96308c72f0a1d432a2ef79d81fccbdb6..7e5b2c61ff79ae6a5cb00b6cb22975349e947f31 100644 |
--- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto |
+++ b/third_party/grpc/src/proto/grpc/testing/payloads.proto |
@@ -1,6 +1,5 @@ |
-// 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,26 +27,29 @@ |
// (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"; |
+package grpc.testing; |
-import "google/protobuf/any.proto"; |
- |
-message AnyIn { |
- string something = 1; |
+message ByteBufferParams { |
+ int32 req_size = 1; |
+ int32 resp_size = 2; |
} |
-message AnyOut { |
- google.protobuf.Any any = 1; |
+message SimpleProtoParams { |
+ int32 req_size = 1; |
+ int32 resp_size = 2; |
} |
-message AnyM { |
- string foo = 1; |
+message ComplexProtoParams { |
+ // TODO (vpai): Fill this in once the details of complex, representative |
+ // protos are decided |
} |
-service TestService { |
- rpc Call(AnyIn) returns (AnyOut); |
+message PayloadConfig { |
+ oneof payload { |
+ ByteBufferParams bytebuf_params = 1; |
+ SimpleProtoParams simple_params = 2; |
+ ComplexProtoParams complex_params = 3; |
+ } |
} |