1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2023 Google LLC. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 #ifndef PROTOBUF_COMPILER_HBP_GEN_MESSAGES_H_ 9 #define PROTOBUF_COMPILER_HBP_GEN_MESSAGES_H_ 10 11 #include "google/protobuf/descriptor.h" 12 #include "google/protobuf/compiler/hpb/output.h" 13 14 namespace google::protobuf::hpb_generator { 15 namespace protobuf = ::proto2; 16 17 void WriteMessageClassDeclarations( 18 const protobuf::Descriptor* descriptor, 19 const std::vector<const protobuf::FieldDescriptor*>& file_exts, 20 const std::vector<const protobuf::EnumDescriptor*>& file_enums, 21 Output& output); 22 void WriteMessageImplementation( 23 const protobuf::Descriptor* descriptor, 24 const std::vector<const protobuf::FieldDescriptor*>& file_exts, 25 Output& output); 26 } // namespace protobuf 27 } // namespace google::hpb_generator 28 29 #endif // PROTOBUF_COMPILER_HBP_GEN_MESSAGES_H_ 30