1syntax = "proto2";
2
3package upbc;
4
5import "google/protobuf/compiler/plugin.proto";
6
7message CodeGeneratorRequest {
8  message UpbInfo {
9    optional string mini_descriptor = 1;
10
11    // An ordered list of fully qualified sub-message names whose upb_MiniTable
12    // should be passed to upb_MiniTable_Link().
13    repeated string sub_message = 3;
14
15    // An ordered list of fully qualified sub-enum names whose upb_MiniTableEnum
16    // should be passed to upb_MiniTable_Link().
17    repeated string sub_enum = 4;
18  }
19
20  // The pb sent by protoc to its plugins.
21  optional google.protobuf.compiler.CodeGeneratorRequest request = 1;
22
23  // upb-specific info for the messages/enums/extensions in the request, keyed
24  // by the fully qualified names.
25  map<string, UpbInfo> upb_info = 2;
26}
27