• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_ACCESSORS_H_
9 #define PROTOBUF_COMPILER_HBP_GEN_ACCESSORS_H_
10 
11 #include "google/protobuf/descriptor.h"
12 #include "google/protobuf/compiler/hpb/gen_utils.h"
13 #include "google/protobuf/compiler/hpb/output.h"
14 
15 namespace google::protobuf::hpb_generator {
16 
17 namespace protobuf = ::proto2;
18 
19 void WriteFieldAccessorsInHeader(const protobuf::Descriptor* desc,
20                                  Output& output);
21 void WriteAccessorsInSource(const protobuf::Descriptor* desc, Output& output);
22 void WriteUsingAccessorsInHeader(const protobuf::Descriptor* desc,
23                                  MessageClassType handle_type, Output& output);
24 void WriteOneofAccessorsInHeader(const protobuf::Descriptor* desc,
25                                  Output& output);
26 }  // namespace protobuf
27 }  // namespace google::hpb_generator
28 
29 #endif  // PROTOBUF_COMPILER_HBP_GEN_ACCESSORS_H_
30