Adam Cozzette | 5aca728 | 2023-08-07 10:01:08 -0700 | [diff] [blame] | 1 | // Protocol Buffers - Google's data interchange format |
| 2 | // Copyright 2023 Google LLC. All rights reserved. |
Adam Cozzette | 5aca728 | 2023-08-07 10:01:08 -0700 | [diff] [blame] | 3 | // |
Hong Shin | b837d17 | 2023-11-07 13:24:59 -0800 | [diff] [blame] | 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file or at |
| 6 | // https://developers.google.com/open-source/licenses/bsd |
Adam Cozzette | 5aca728 | 2023-08-07 10:01:08 -0700 | [diff] [blame] | 7 | |
Protobuf Team Bot | bb38fc9 | 2022-06-10 14:32:58 -0700 | [diff] [blame] | 8 | syntax = "proto2"; |
| 9 | |
Adam Cozzette | 12c7bb0 | 2023-09-28 12:54:11 -0700 | [diff] [blame] | 10 | package upb; |
Protobuf Team Bot | bb38fc9 | 2022-06-10 14:32:58 -0700 | [diff] [blame] | 11 | |
Deanna Garcia | b7437a1 | 2023-03-21 14:45:35 -0700 | [diff] [blame] | 12 | import "google/protobuf/compiler/plugin.proto"; |
Protobuf Team Bot | bb38fc9 | 2022-06-10 14:32:58 -0700 | [diff] [blame] | 13 | |
| 14 | message CodeGeneratorRequest { |
Joshua Haberman | 56c4a42 | 2023-03-03 18:29:46 -0800 | [diff] [blame] | 15 | message UpbInfo { |
| 16 | optional string mini_descriptor = 1; |
| 17 | |
| 18 | // An ordered list of fully qualified sub-message names whose upb_MiniTable |
| 19 | // should be passed to upb_MiniTable_Link(). |
| 20 | repeated string sub_message = 3; |
| 21 | |
| 22 | // An ordered list of fully qualified sub-enum names whose upb_MiniTableEnum |
| 23 | // should be passed to upb_MiniTable_Link(). |
| 24 | repeated string sub_enum = 4; |
| 25 | } |
| 26 | |
Protobuf Team Bot | bb38fc9 | 2022-06-10 14:32:58 -0700 | [diff] [blame] | 27 | // The pb sent by protoc to its plugins. |
| 28 | optional google.protobuf.compiler.CodeGeneratorRequest request = 1; |
| 29 | |
Joshua Haberman | 56c4a42 | 2023-03-03 18:29:46 -0800 | [diff] [blame] | 30 | // upb-specific info for the messages/enums/extensions in the request, keyed |
| 31 | // by the fully qualified names. |
| 32 | map<string, UpbInfo> upb_info = 2; |
Protobuf Team Bot | bb38fc9 | 2022-06-10 14:32:58 -0700 | [diff] [blame] | 33 | } |