blob: 5297eccba849de9d51db66779499aea8113224df [file] [log] [blame]
Yi Jinf9ed04b2017-10-20 16:17:58 -07001#include <stdint.h>
2
3#include "google/protobuf/compiler/plugin.pb.h"
4#include "google/protobuf/io/zero_copy_stream_impl.h"
5
6namespace android {
7namespace stream_proto {
8
9using namespace google::protobuf;
10using namespace google::protobuf::compiler;
11using namespace std;
12
13/**
14 * Get encoded field id from a field.
15 */
16uint64_t get_field_id(const FieldDescriptorProto& field);
17
18/**
19 * Get the string name for a field.
20 */
21string get_proto_type(const FieldDescriptorProto& field);
22
23/**
24 * See if this is the file for this request, and not one of the imported ones.
25 */
26bool should_generate_for_file(const CodeGeneratorRequest& request, const string& file);
27
28} // stream_proto
29} // android