aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/proto/grpc/testing/echo_messages.proto
blob: 5396a2fd39aaa507b93d7b957028d486a9f1a168 (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

// Copyright 2015 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package grpc.testing;

// Message to be echoed back serialized in trailer.
message DebugInfo {
  repeated string stack_entries = 1;
  string detail = 2;
}

// Error status client expects to see.
message ErrorStatus {
  int32 code = 1;
  string error_message = 2;
  string binary_error_details = 3;
}

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;
  string expected_transport_security_type = 10;
  DebugInfo debug_info = 11;
  bool server_die = 12; // Server should not see a request with this set.
  string binary_error_details = 13;
  ErrorStatus expected_error = 14;
  int32 server_sleep_us = 15; // Amount to sleep when invoking server
}

message EchoRequest {
  string message = 1;
  RequestParams param = 2;
}

message ResponseParams {
  int64 request_deadline = 1;
  string host = 2;
  string peer = 3;
}

message EchoResponse {
  string message = 1;
  ResponseParams param = 2;
}