Lines Matching refs:ToProto
301 static bool ToProto(Message* instance,
306 DBG("Type::ToProto(instance, field, value, type, repeated) E:");
310 DBG("Type::ToProto field->name()=%s", field->name().c_str());
314 DBG("Type::ToProto CPPTYPE_MESSAGE");
315 ok = type->ToProto(repeated ?
321 DBG("Type::ToProto CPPTYPE_STRING");
327 DBG("Type::ToProto CPPTYPE_INT32");
331 DBG("Type::ToProto CPPTYPE_UINT32");
335 DBG("Type::ToProto CPPTYPE_INT64");
339 DBG("Type::ToProto CPPTYPE_UINT64");
343 DBG("Type::ToProto CPPTYPE_FLOAT");
347 DBG("Type::ToProto CPPTYPE_DOUBLE");
351 DBG("Type::ToProto CPPTYPE_BOOL");
355 DBG("Type::ToProto CPPTYPE_ENUM");
369 "Type::ToProto Bad enum value, %d is not a member of enum %s",
379 "Type::ToProto Bad enum value, %s is not a member of enum %s",
395 DBG("Type::ToProto(instance, field, value, type, repeated) X: ok=%d", ok);
400 bool ToProto(Message* instance, Handle<Object> src) const {
401 DBG("ToProto(Message *, Handle<Object>) E:");
416 ok = ToProto(instance, field, value, child_type, true);
421 ok = ToProto(instance, field, array->Get(j), child_type, true);
425 ok = ToProto(instance, field, value, child_type, false);
428 DBG("ToProto(Message *, Handle<Object>) X: ok=%d", ok);
442 if (type->ToProto(message, args[0].As<Object>())) {