Protocol Buffers - Google's data interchange format (grpc依赖) https://developers.google.com/protocol-buffers/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
780 B

syntax = "proto2";
package upbc;
import "google/protobuf/compiler/plugin.proto";
message CodeGeneratorRequest {
message UpbInfo {
optional string mini_descriptor = 1;
// An ordered list of fully qualified sub-message names whose upb_MiniTable
// should be passed to upb_MiniTable_Link().
repeated string sub_message = 3;
// An ordered list of fully qualified sub-enum names whose upb_MiniTableEnum
// should be passed to upb_MiniTable_Link().
repeated string sub_enum = 4;
}
// The pb sent by protoc to its plugins.
optional google.protobuf.compiler.CodeGeneratorRequest request = 1;
// upb-specific info for the messages/enums/extensions in the request, keyed
// by the fully qualified names.
map<string, UpbInfo> upb_info = 2;
}