Message in pb
JavaFeatures
pb.JavaFeatures
Fields
| Field | Type | Number | Description |
|---|---|---|---|
| legacy_closed_enum | optionalbool | 1 | Whether or not to treat an enum field as closed. This option is only applicable to enum fields, and will be removed in the future. It is consistent with the legacy behavior of using proto3 enum types for proto2 fields.
|
| utf8_validation | optionalUtf8Validation | 2 |
|
| large_enum | optionalbool | 3 | Allows creation of large Java enums, extending beyond the standard constant limits imposed by the Java language.
|
| use_old_outer_classname_default | optionalbool | 4 | Whether to use the old default outer class name scheme, or the new feature which adds a "Proto" suffix to the outer class name. Users will not be able to set this option, because we removed it in the same edition that it was introduced. But we use it to determine which naming scheme to use for outer class name defaults.
|
| nest_in_file_class | optionalNestInFileClass | 5 | Whether to nest the generated class in the generated file class. This is only applicable to top-level messages, enums, and services.
|
Nested messages
Nested enums
- Utf8ValidationThe UTF8 validation strategy to use.
Reserved numbers: 6
Used by
- Extensionpb.java
Defined in google/protobuf/java_features.proto