1 // Copyright 2019 The Pigweed Authors
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
7 // https://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
16 // This is a test .proto file for pw_protobuf's codegen implementation.
18 package pw.protobuf.test;
20 // Top-level enum definition.
29 // Nested messages and enums.
55 Binary protobuf_bin = 3;
56 Pigweed.Binary pigweed_bin = 4;
59 Binary binary_value = 1;
63 uint32 magic_number = 1;
67 string error_message = 5;
69 DeviceInfo device_info = 6;
71 // Nested messages and enums as fields.
73 Protobuf.Binary bin = 8;
76 repeated Proto.ID id = 10;
90 // Circular dependency with Pigweed.
93 // Same name, different namespace.
95 Pigweed.Pigweed.Binary pigweed_pigweed_bin = 3;
96 Pigweed.Protobuf.Binary pigweed_protobuf_bin = 4;
98 Pigweed.Protobuf.Compiler meta = 5;
101 // Yet another message.
110 string device_name = 1;
111 fixed32 device_id = 2;
112 DeviceStatus status = 3;
114 repeated KeyValuePair attributes = 4;
117 // This might be useful.
118 message KeyValuePair {