• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2020 The 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
17option java_multiple_files = true;
18option java_package = "io.grpc.examples.namespaced";
19option java_outer_classname = "NamespacedExampleProtos";
20option objc_class_prefix = "NEP";
21
22package upper.example;
23
24// TODO: dependencies are still broken
25// Need to do something like this: https://packaging.python.org/guides/packaging-namespace-packages/
26// import "upper/example/namespaced_dependency.proto";
27
28message NamespacedExample {
29  string value = 1;
30
31  // TODO: dependencies are still broken
32  // NamespacedDependency dependency = 2;
33}
34
35service NamespacedService {
36  rpc SayHello (NamespacedExample) returns (NamespacedExample) {}
37}
38
39