• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2009 The Android Open Source Project
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 nos.generator.test;
18
19import "nugget/protobuf/options.proto";
20
21service Hello {
22    option (nugget.protobuf.app_id) = "TEST";
23    option (nugget.protobuf.app_name) = "Hello, world!";
24    option (nugget.protobuf.app_version) = 1;
25    option (nugget.protobuf.request_buffer_size) = 16;
26    option (nugget.protobuf.response_buffer_size) = 89;
27
28    rpc First (EmptyRequest) returns (EmptyResponse);
29    rpc Second (EmptyRequest) returns (EmptyResponse);
30    rpc Third (EmptyRequest) returns (EmptyResponse);
31    rpc Greet (GreetRequest) returns (GreetResponse);
32}
33
34message EmptyRequest {}
35message EmptyResponse {}
36
37// Greet
38message GreetRequest {
39    string who = 1;
40    uint32 age = 2;
41}
42message GreetResponse {
43    string greeting = 1;
44}
45