24 #include "dccl_native_protobuf.h"
26 #include "../codecs4/field_codec_default_message.h"
34 using google::protobuf::FieldDescriptor;
36 const char* native_pb_group =
"dccl.native_protobuf";
42 FieldDescriptor::TYPE_INT64>(native_pb_group);
45 FieldDescriptor::TYPE_INT32>(native_pb_group);
49 FieldDescriptor::TYPE_SINT64>(native_pb_group);
52 FieldDescriptor::TYPE_SINT32>(native_pb_group);
56 FieldDescriptor::TYPE_UINT64>(native_pb_group);
59 FieldDescriptor::TYPE_UINT32>(native_pb_group);
63 FieldDescriptor::TYPE_SFIXED64>(native_pb_group);
66 FieldDescriptor::TYPE_SFIXED32>(native_pb_group);
70 FieldDescriptor::TYPE_FIXED64>(native_pb_group);
73 FieldDescriptor::TYPE_FIXED32>(native_pb_group);
77 FieldDescriptor::TYPE_DOUBLE>(native_pb_group);
80 FieldDescriptor::TYPE_FLOAT>(native_pb_group);
83 FieldDescriptor::TYPE_BOOL>(native_pb_group);
94 using google::protobuf::FieldDescriptor;
96 const char* native_pb_group =
"dccl.native_protobuf";
100 FieldDescriptor::TYPE_INT64>(native_pb_group);
103 FieldDescriptor::TYPE_INT32>(native_pb_group);
107 FieldDescriptor::TYPE_SINT64>(native_pb_group);
110 FieldDescriptor::TYPE_SINT32>(native_pb_group);
114 FieldDescriptor::TYPE_UINT64>(native_pb_group);
117 FieldDescriptor::TYPE_UINT32>(native_pb_group);
121 FieldDescriptor::TYPE_SFIXED64>(native_pb_group);
124 FieldDescriptor::TYPE_SFIXED32>(native_pb_group);
128 FieldDescriptor::TYPE_FIXED64>(native_pb_group);
131 FieldDescriptor::TYPE_FIXED32>(native_pb_group);
135 FieldDescriptor::TYPE_DOUBLE>(native_pb_group);
138 FieldDescriptor::TYPE_FLOAT>(native_pb_group);
141 FieldDescriptor::TYPE_BOOL>(native_pb_group);
151 const google::protobuf::EnumValueDescriptor*
const& field_value)
153 return field_value->index();
156 const google::protobuf::EnumValueDescriptor*
159 const google::protobuf::EnumDescriptor* e = this_field()->enum_type();
161 if (wire_value < e->value_count())
163 const google::protobuf::EnumValueDescriptor* return_value = e->value(wire_value);