• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2019 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
15syntax = "proto3";
16
17package grpc.testing;
18
19import "grpc/testing/package_options_import.proto";
20import "grpc/testing/package_options_import2.proto";
21
22// For sanity checking package definitions
23option ruby_package = "RPC::Test::New::Package::Options";
24
25message AnotherTestRequest { }
26
27message AnotherTestResponse { }
28
29message Foo { }
30
31message Bar {
32  message Baz { }
33}
34
35service AnotherTestService {
36  rpc GetTest(AnotherTestRequest) returns (AnotherTestResponse) { }
37  rpc OtherTest(Thing) returns (Thing) { }
38  rpc PackageTest(grpc.testing.Thing) returns (grpc.foo.Foo.Bar) { }
39  rpc FooTest(Foo) returns (Foo) { }
40  rpc NestedMessageTest(Foo) returns (Bar.Baz) { }
41}
42