• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2016 gRPC authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// File detached comment 1
16
17// File detached comment 2
18
19// File leading comment 1
20syntax = "proto3";
21
22// Ignored detached comment
23// The comments in this file are not meant for readability
24// but rather to test to make sure that the code generator
25// properly preserves comments on files, services, and RPCs
26
27// Ignored package leading comment
28package grpc.testing;
29
30message Request {
31}
32message Response {
33}
34
35// ServiceA detached comment 1
36
37// ServiceA detached comment 2
38
39// ServiceA leading comment 1
40service ServiceA {
41  // MethodA1 leading comment 1
42  rpc MethodA1(Request) returns (Response);  // MethodA1 trailing comment 1
43
44  // MethodA2 detached leading comment 1
45
46  // Method A2 leading comment 1
47  // Method A2 leading comment 2
48  rpc MethodA2(stream Request) returns (Response);
49  // MethodA2 trailing comment 1
50
51  // Method A3 leading comment 1
52  rpc MethodA3(Request) returns (stream Response);
53  // Method A3 trailing comment 1
54
55  // Method A4 leading comment 1
56  rpc MethodA4(stream Request) returns (stream Response);
57  // Method A4 trailing comment 1
58}
59// Ignored ServiceA trailing comment 1
60
61// ServiceB leading comment 1
62service ServiceB {
63  // ServiceB trailing comment 1
64
65  // MethodB1 leading comment 1
66  rpc MethodB1(Request) returns (Response);
67  // MethodB1 trailing comment 1
68}
69// Ignored ServiceB trailing comment 2
70
71// Ignored file trailing comment
72