File indexing completed on 2025-01-31 10:11:57
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_REPEATED_PRIMITIVE_FIELD_H__
0009 #define GOOGLE_PROTOBUF_COMPILER_CSHARP_REPEATED_PRIMITIVE_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 class RepeatedPrimitiveFieldGenerator : public FieldGeneratorBase {
0020 public:
0021 RepeatedPrimitiveFieldGenerator(const FieldDescriptor* descriptor,
0022 int presenceIndex, const Options* options);
0023 ~RepeatedPrimitiveFieldGenerator();
0024
0025 RepeatedPrimitiveFieldGenerator(const RepeatedPrimitiveFieldGenerator&) = delete;
0026 RepeatedPrimitiveFieldGenerator& operator=(const RepeatedPrimitiveFieldGenerator&) = delete;
0027
0028 virtual void GenerateCloningCode(io::Printer* printer) override;
0029 virtual void GenerateFreezingCode(io::Printer* printer) override;
0030 virtual void GenerateMembers(io::Printer* printer) override;
0031 virtual void GenerateMergingCode(io::Printer* printer) override;
0032 virtual void GenerateParsingCode(io::Printer* printer) override;
0033 virtual void GenerateParsingCode(io::Printer* printer, bool use_parse_context) override;
0034 virtual void GenerateSerializationCode(io::Printer* printer) override;
0035 virtual void GenerateSerializationCode(io::Printer* printer, bool use_write_context) override;
0036 virtual void GenerateSerializedSizeCode(io::Printer* printer) override;
0037 virtual void GenerateExtensionCode(io::Printer* printer) override;
0038
0039 virtual void WriteHash(io::Printer* printer) override;
0040 virtual void WriteEquals(io::Printer* printer) override;
0041 virtual void WriteToString(io::Printer* printer) override;
0042 };
0043
0044 }
0045 }
0046 }
0047 }
0048
0049 #endif
0050