We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9af05b commit a85eda6Copy full SHA for a85eda6
src/google/protobuf/descriptor_legacy.h
@@ -84,6 +84,26 @@ class PROTOBUF_EXPORT FileDescriptorLegacy {
84
const FileDescriptor* desc_;
85
};
86
87
+class PROTOBUF_EXPORT FieldDescriptorLegacy {
88
+ public:
89
+ explicit FieldDescriptorLegacy(const FieldDescriptor* desc) : desc_(desc) {}
90
+
91
+ bool has_optional_keyword() const { return desc_->has_optional_keyword(); }
92
93
+ private:
94
+ const FieldDescriptor* desc_;
95
+};
96
97
+class PROTOBUF_EXPORT OneofDescriptorLegacy {
98
99
+ explicit OneofDescriptorLegacy(const OneofDescriptor* desc) : desc_(desc) {}
100
101
+ bool is_synthetic() const { return desc_->is_synthetic(); }
102
103
104
+ const OneofDescriptor* desc_;
105
106
107
} // namespace protobuf
108
} // namespace google
109
0 commit comments