Home | History | Annotate | Download | only in streaming_proto
      1 #include <stdint.h>
      2 
      3 #include "google/protobuf/compiler/plugin.pb.h"
      4 #include "google/protobuf/io/zero_copy_stream_impl.h"
      5 
      6 namespace android {
      7 namespace stream_proto {
      8 
      9 using namespace google::protobuf;
     10 using namespace google::protobuf::compiler;
     11 using namespace std;
     12 
     13 /**
     14  * Get encoded field id from a field.
     15  */
     16 uint64_t get_field_id(const FieldDescriptorProto& field);
     17 
     18 /**
     19  * Get the string name for a field.
     20  */
     21 string 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  */
     26 bool should_generate_for_file(const CodeGeneratorRequest& request, const string& file);
     27 
     28 } // stream_proto
     29 } // android
     30