aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/proto/grpc/binary_log
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2016-02-10 09:58:13 -0800
committerGravatar murgatroid99 <mlumish@google.com>2016-02-10 09:58:13 -0800
commit44de6a1701d8e9ce5617fe93d816e0ac45172f0c (patch)
tree30fa6c0139ee0f27188acd0d3b5e94186ec4e5f5 /src/proto/grpc/binary_log
parentc4f70fcb8fd3c76e055de0efcf4eb5a9e19d4655 (diff)
Added binary log proto
Diffstat (limited to 'src/proto/grpc/binary_log')
-rw-r--r--src/proto/grpc/binary_log/v1alpha/log.proto84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/proto/grpc/binary_log/v1alpha/log.proto b/src/proto/grpc/binary_log/v1alpha/log.proto
new file mode 100644
index 0000000000..43277bc4a5
--- /dev/null
+++ b/src/proto/grpc/binary_log/v1alpha/log.proto
@@ -0,0 +1,84 @@
+// Copyright 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
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// 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.
+
+syntax = "proto3";
+
+import "google/prootbuf/timestamp.proto"
+
+package grpc.binary_log.v1alpha;
+
+enum Direction {
+ SERVER_SEND;
+ SERVER_RECV;
+ CLIENT_SEND;
+ CLIENT_RECV;
+}
+
+message KeyValuePair {
+ string key;
+ string value;
+}
+
+message Metadata {
+ uint32 rpc_id = 1;
+ google.protobuf.Timestamp timestamp = 2;
+ Direction direction = 3;
+ repeated KeyValuePair metadata = 4;
+
+ message ClientInitialMetadata {
+ string method_name = 1;
+ google.protobuf.Timestamp timestamp = 2;
+ }
+
+ message UserData {
+ }
+
+ message ServerInitialMetadata {
+ }
+
+ message ServerStatus {
+ uint32 code = 1;
+ string details = 2;
+ }
+
+ oneof kind {
+ ClientInitialMetadata client_initial_metadata = 5;
+ UserData user_data = 6;
+ ServerInitialMetadata server_initial_metadata = 7;
+ ServerStatus server_status = 8;
+ }
+}
+
+message Message {
+ uint32 rpc_id = 1;
+ uint32 sequence_number = 2;
+ Direction direction = 3;
+ uint64 length;
+ bytes data;
+} \ No newline at end of file