Lines Matching refs:Descriptor
39 static bool read_message(CodedInputStream* in, Descriptor const* descriptor,
41 static void print_message(Out* out, Descriptor const* descriptor, GenericMessage const* message);
45 read_length_delimited(CodedInputStream* in, uint32 fieldId, Descriptor const* descriptor,
53 FieldDescriptor const* field = descriptor->FindFieldByNumber(fieldId);
83 read_message(CodedInputStream* in, Descriptor const* descriptor, GenericMessage* message)
110 if (!read_length_delimited(in, fieldId, descriptor, message)) {
199 print_message(Out* out, Descriptor const* descriptor, GenericMessage const* message)
201 out->printf("%s {\n", descriptor->name().c_str());
204 int const N = descriptor->field_count();
206 FieldDescriptor const* field = descriptor->field(i);
303 Descriptor const* descriptor = IncidentProto::descriptor();
312 field = descriptor->FindFieldByNumber(id);
320 field = descriptor->FindFieldByName(name);
551 Descriptor const* descriptor = IncidentProto::descriptor();
555 if (!read_message(&in, descriptor, &message)) {
562 print_message(&out, descriptor, &message);