diff options
Diffstat (limited to 'src/google/protobuf/compiler/csharp/csharp_enum_field.h')
-rw-r--r-- | src/google/protobuf/compiler/csharp/csharp_enum_field.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_enum_field.h b/src/google/protobuf/compiler/csharp/csharp_enum_field.h index b21fa9dc..565287b2 100644 --- a/src/google/protobuf/compiler/csharp/csharp_enum_field.h +++ b/src/google/protobuf/compiler/csharp/csharp_enum_field.h @@ -60,10 +60,28 @@ class EnumFieldGenerator : public FieldGeneratorBase { virtual void WriteEquals(Writer* writer); virtual void WriteToString(Writer* writer); + protected: + string has_property_check; + private: GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EnumFieldGenerator); }; +class EnumOneofFieldGenerator : public EnumFieldGenerator { + public: + EnumOneofFieldGenerator(const FieldDescriptor* descriptor, int fieldOrdinal); + ~EnumOneofFieldGenerator(); + + virtual void GenerateMembers(Writer* writer); + virtual void GenerateBuilderMembers(Writer* writer); + virtual void WriteEquals(Writer* writer); + virtual void WriteToString(Writer* writer); + virtual void GenerateParsingCode(Writer* writer); + + private: + GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EnumOneofFieldGenerator); +}; + } // namespace csharp } // namespace compiler } // namespace protobuf |