Debian Codegraph @

activemq-protobuf-test/src/test/java/com/google/protobuf/multiple_files_test.proto

raw
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc.
3 // http://code.google.com/p/protobuf/
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16
17 // Author: [email protected] (Kenton Varda)
18 //
19 // A proto file which tests the java_multiple_files option.
20
21
22 import "google/protobuf/unittest.proto";
23
24 package protobuf_unittest;
25
26 option java_multiple_files = true;
27 option java_outer_classname = "MultipleFilesTestProto";
28
29 message MessageWithNoOuter {
30 message NestedMessage {
31 optional int32 i = 1;
32 }
33 enum NestedEnum {
34 BAZ = 3;
35 }
36 optional NestedMessage nested = 1;
37 repeated TestAllTypes foreign = 2;
38 optional NestedEnum nested_enum = 3;
39 optional EnumWithNoOuter foreign_enum = 4;
40 }
41
42 enum EnumWithNoOuter {
43 FOO = 1;
44 BAR = 2;
45 }
46
47 service ServiceWithNoOuter {
48 rpc Foo(MessageWithNoOuter) returns(TestAllTypes);
49 }
50
51 extend TestAllExtensions {
52 optional int32 extension_with_outer = 1234567;
53 }