Index: third_party/protobuf/src/google/protobuf/compiler/objectivec/objectivec_message.h |
diff --git a/third_party/protobuf/src/google/protobuf/compiler/objectivec/objectivec_message.h b/third_party/protobuf/src/google/protobuf/compiler/objectivec/objectivec_message.h |
index 8565e76ff6e4a268e8ab19c1b4b4b81295941a39..910535ace39f3f51a7b97cedbfe446fb7d3d0397 100644 |
--- a/third_party/protobuf/src/google/protobuf/compiler/objectivec/objectivec_message.h |
+++ b/third_party/protobuf/src/google/protobuf/compiler/objectivec/objectivec_message.h |
@@ -66,6 +66,9 @@ class MessageGenerator { |
void GenerateExtensionRegistrationSource(io::Printer* printer); |
void DetermineForwardDeclarations(set<string>* fwd_decls); |
+ // Checks if the message or a nested message includes a oneof definition. |
+ bool IncludesOneOfDefinition() const; |
+ |
private: |
void GenerateParseFromMethodsHeader(io::Printer* printer); |