|
|
|
@ -36,7 +36,6 @@ |
|
|
|
|
// A valid .proto file can be translated directly to a FileDescriptorProto |
|
|
|
|
// without any other information (e.g. without reading its imports). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
syntax = "proto2"; |
|
|
|
|
|
|
|
|
|
package upb_benchmark; |
|
|
|
@ -125,7 +124,6 @@ message ExtensionRangeOptions { |
|
|
|
|
// The parser stores options it doesn't recognize here. See above. |
|
|
|
|
repeated UninterpretedOption uninterpreted_option = 999; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Clients can define custom options in extensions of this message. See above. |
|
|
|
|
extensions 1000 to max; |
|
|
|
|
} |
|
|
|
@ -302,7 +300,6 @@ message MethodDescriptorProto { |
|
|
|
|
optional bool server_streaming = 6 [default = false]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// =================================================================== |
|
|
|
|
// Options |
|
|
|
|
|
|
|
|
@ -336,14 +333,12 @@ message MethodDescriptorProto { |
|
|
|
|
// to automatically assign option numbers. |
|
|
|
|
|
|
|
|
|
message FileOptions { |
|
|
|
|
|
|
|
|
|
// Sets the Java package where classes generated from this .proto will be |
|
|
|
|
// placed. By default, the proto package is used, but this is often |
|
|
|
|
// inappropriate because proto packages do not normally start with backwards |
|
|
|
|
// domain names. |
|
|
|
|
optional string java_package = 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If set, all the classes from the .proto file are wrapped in a single |
|
|
|
|
// outer class with the given name. This applies to both Proto1 |
|
|
|
|
// (equivalent to the old "--one_java_file" option) and Proto2 (where |
|
|
|
@ -360,7 +355,7 @@ message FileOptions { |
|
|
|
|
optional bool java_multiple_files = 10 [default = false]; |
|
|
|
|
|
|
|
|
|
// This option does nothing. |
|
|
|
|
optional bool java_generate_equals_and_hash = 20 [deprecated=true]; |
|
|
|
|
optional bool java_generate_equals_and_hash = 20 [deprecated = true]; |
|
|
|
|
|
|
|
|
|
// If set true, then the Java2 code generator will generate code that |
|
|
|
|
// throws an exception whenever an attempt is made to assign a non-UTF-8 |
|
|
|
@ -370,7 +365,6 @@ message FileOptions { |
|
|
|
|
// This option has no effect on when used with the lite runtime. |
|
|
|
|
optional bool java_string_check_utf8 = 27 [default = false]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Generated classes can be optimized for speed or code size. |
|
|
|
|
enum OptimizeMode { |
|
|
|
|
SPEED = 1; // Generate complete code for parsing, serialization, |
|
|
|
@ -387,9 +381,6 @@ message FileOptions { |
|
|
|
|
// - Otherwise, the basename of the .proto file, without extension. |
|
|
|
|
optional string go_package = 11; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Should generic services be generated in each language? "Generic" services |
|
|
|
|
// are not specific to any particular RPC system. They are generated by the |
|
|
|
|
// main code generators in each language (without additional plugins). |
|
|
|
@ -415,7 +406,6 @@ message FileOptions { |
|
|
|
|
// only to generated classes for C++. |
|
|
|
|
optional bool cc_enable_arenas = 31 [default = true]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Sets the objective c class prefix which is prepended to all objective c |
|
|
|
|
// generated classes from this .proto. There is no default. |
|
|
|
|
optional string objc_class_prefix = 36; |
|
|
|
@ -448,7 +438,6 @@ message FileOptions { |
|
|
|
|
// determining the ruby package. |
|
|
|
|
optional string ruby_package = 45; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The parser stores options it doesn't recognize here. |
|
|
|
|
// See the documentation for the "Options" section above. |
|
|
|
|
repeated UninterpretedOption uninterpreted_option = 999; |
|
|
|
@ -518,7 +507,6 @@ message MessageOptions { |
|
|
|
|
reserved 8; // javalite_serializable |
|
|
|
|
reserved 9; // javanano_as_lite |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The parser stores options it doesn't recognize here. See above. |
|
|
|
|
repeated UninterpretedOption uninterpreted_option = 999; |
|
|
|
|
|
|
|
|
@ -609,7 +597,6 @@ message FieldOptions { |
|
|
|
|
// For Google-internal migration only. Do not use. |
|
|
|
|
optional bool weak = 10 [default = false]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The parser stores options it doesn't recognize here. See above. |
|
|
|
|
repeated UninterpretedOption uninterpreted_option = 999; |
|
|
|
|
|
|
|
|
@ -628,7 +615,6 @@ message OneofOptions { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
message EnumOptions { |
|
|
|
|
|
|
|
|
|
// Set this option to true to allow mapping different tag names to the same |
|
|
|
|
// value. |
|
|
|
|
optional bool allow_alias = 2; |
|
|
|
@ -663,7 +649,6 @@ message EnumValueOptions { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
message ServiceOptions { |
|
|
|
|
|
|
|
|
|
// Note: Field numbers 1 through 32 are reserved for Google's internal RPC |
|
|
|
|
// framework. We apologize for hoarding these numbers to ourselves, but |
|
|
|
|
// we were already using them long before we decided to release Protocol |
|
|
|
@ -683,7 +668,6 @@ message ServiceOptions { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
message MethodOptions { |
|
|
|
|
|
|
|
|
|
// Note: Field numbers 1 through 32 are reserved for Google's internal RPC |
|
|
|
|
// framework. We apologize for hoarding these numbers to ourselves, but |
|
|
|
|
// we were already using them long before we decided to release Protocol |
|
|
|
@ -713,7 +697,6 @@ message MethodOptions { |
|
|
|
|
extensions 1000 to max; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// A message representing a option the parser does not recognize. This only |
|
|
|
|
// appears in options protos created by the compiler::Parser class. |
|
|
|
|
// DescriptorPool resolves these when building Descriptor objects. Therefore, |
|
|
|
|