Home | History | Annotate | Download | only in testing
      1 
      2 // Copyright 2015 gRPC authors.
      3 //
      4 // Licensed under the Apache License, Version 2.0 (the "License");
      5 // you may not use this file except in compliance with the License.
      6 // You may obtain a copy of the License at
      7 //
      8 //     http://www.apache.org/licenses/LICENSE-2.0
      9 //
     10 // Unless required by applicable law or agreed to in writing, software
     11 // distributed under the License is distributed on an "AS IS" BASIS,
     12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 // See the License for the specific language governing permissions and
     14 // limitations under the License.
     15 
     16 syntax = "proto3";
     17 
     18 package grpc.testing;
     19 
     20 // Message to be echoed back serialized in trailer.
     21 message DebugInfo {
     22   repeated string stack_entries = 1;
     23   string detail = 2;
     24 }
     25 
     26 // Error status client expects to see.
     27 message ErrorStatus {
     28   int32 code = 1;
     29   string error_message = 2;
     30   string binary_error_details = 3;
     31 }
     32 
     33 message RequestParams {
     34   bool echo_deadline = 1;
     35   int32 client_cancel_after_us = 2;
     36   int32 server_cancel_after_us = 3;
     37   bool echo_metadata = 4;
     38   bool check_auth_context = 5;
     39   int32 response_message_length = 6;
     40   bool echo_peer = 7;
     41   string expected_client_identity = 8; // will force check_auth_context.
     42   bool skip_cancelled_check = 9;
     43   string expected_transport_security_type = 10;
     44   DebugInfo debug_info = 11;
     45   bool server_die = 12; // Server should not see a request with this set.
     46   string binary_error_details = 13;
     47   ErrorStatus expected_error = 14;
     48   int32 server_sleep_us = 15; // Amount to sleep when invoking server
     49   int32 backend_channel_idx = 16; // which backend to send request to
     50 }
     51 
     52 message EchoRequest {
     53   string message = 1;
     54   RequestParams param = 2;
     55 }
     56 
     57 message ResponseParams {
     58   int64 request_deadline = 1;
     59   string host = 2;
     60   string peer = 3;
     61 }
     62 
     63 message EchoResponse {
     64   string message = 1;
     65   ResponseParams param = 2;
     66 }
     67