forked from anqin/trident
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrpc_meta.proto
More file actions
41 lines (33 loc) · 1.13 KB
/
rpc_meta.proto
File metadata and controls
41 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) 2014 The Trident Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
//
syntax="proto2";
import "trident/rpc_option.proto";
package trident;
message RpcMeta {
enum Type {
REQUEST = 0;
RESPONSE = 1;
};
// Required fields for both request and response, tag starts from 1.
required Type type = 1;
required uint64 sequence_id = 2;
// Field for request type, tag starts from 100.
// The fully-qualified name of the method, scope delimited by periods.
// It includes the full name of service.
// For example: "test.HelloService.GreetMethod"
optional string method = 100;
// Field for response type, tag starts from 200.
// If the request is failed.
optional bool failed = 200;
// Set the error code if failed.
optional int32 error_code = 201;
// Set the reason if failed.
optional string reason = 202;
// Set the request/response compress type.
optional CompressType compress_type = 300;
// Set the response compress type of user expected.
optional CompressType expected_response_compress_type = 301;
}