File indexing completed on 2025-01-31 10:11:57
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_REPEATED_MESSAGE_FIELD_H__
0009 #define GOOGLE_PROTOBUF_COMPILER_CSHARP_REPEATED_MESSAGE_FIELD_H__
0010
0011 #include "google/protobuf/compiler/code_generator.h"
0012 #include "google/protobuf/compiler/csharp/csharp_field_base.h"
0013
0014 namespace google {
0015 namespace protobuf {
0016 namespace compiler {
0017 namespace csharp {
0018
0019 struct Options;
0020
0021 class RepeatedMessageFieldGenerator : public FieldGeneratorBase {
0022 public:
0023 RepeatedMessageFieldGenerator(const FieldDescriptor* descriptor,
0024 int presenceIndex,
0025 const Options *options);
0026 ~RepeatedMessageFieldGenerator();
0027
0028 RepeatedMessageFieldGenerator(const RepeatedMessageFieldGenerator&) = delete;
0029 RepeatedMessageFieldGenerator& operator=(
0030 const RepeatedMessageFieldGenerator&) = delete;
0031
0032 virtual void GenerateCloningCode(io::Printer* printer) override;
0033 virtual void GenerateFreezingCode(io::Printer* printer) override;
0034 virtual void GenerateMembers(io::Printer* printer) override;
0035 virtual void GenerateMergingCode(io::Printer* printer) override;
0036 virtual void GenerateParsingCode(io::Printer* printer) override;
0037 virtual void GenerateParsingCode(io::Printer* printer, bool use_parse_context) override;
0038 virtual void GenerateSerializationCode(io::Printer* printer) override;
0039 virtual void GenerateSerializationCode(io::Printer* printer, bool use_write_context) override;
0040 virtual void GenerateSerializedSizeCode(io::Printer* printer) override;
0041 virtual void GenerateExtensionCode(io::Printer* printer) override;
0042
0043 virtual void WriteHash(io::Printer* printer) override;
0044 virtual void WriteEquals(io::Printer* printer) override;
0045 virtual void WriteToString(io::Printer* printer) override;
0046 };
0047
0048 }
0049 }
0050 }
0051 }
0052
0053 #endif
0054