/third_party/protobuf/php/ext/google/protobuf/ |
D | message.c | 99 const upb_msgdef *m = msg->desc->msgdef; in get_field() 452 const upb_msgdef *msgdef = desc->msgdef; in PHP_METHOD() local 457 intern->msg = upb_msg_new(msgdef, arena); in PHP_METHOD() 465 Message_InitFromPhp(intern->msg, desc->msgdef, init_arr, arena); in PHP_METHOD() 476 upb_msg_discardunknown(intern->msg, intern->desc->msgdef, 64); in PHP_METHOD() 486 upb_msg_clear(intern->msg, intern->desc->msgdef); in PHP_METHOD() 499 const upb_msglayout *l = upb_msgdef_layout(intern->desc->msgdef); in PHP_METHOD() 540 const upb_msglayout *l = upb_msgdef_layout(intern->desc->msgdef); in PHP_METHOD() 566 const upb_msglayout *l = upb_msgdef_layout(intern->desc->msgdef); in PHP_METHOD() 614 if (!upb_json_decode(data_copy, data_len, intern->msg, intern->desc->msgdef, in PHP_METHOD() [all …]
|
D | def.c | 516 const upb_msgdef *msgdef = NameMap_GetMessage(ce); in Descriptor_FromClassEntry() local 517 if (!msgdef) { in Descriptor_FromClassEntry() 525 ret->msgdef = msgdef; in Descriptor_FromClassEntry() 553 ret->msgdef = m; in Descriptor_GetFromMessageDef() 601 RETURN_STRING(upb_msgdef_fullname(intern->msgdef)); in PHP_METHOD() 612 int count = upb_msgdef_numfields(intern->msgdef); in PHP_METHOD() 628 for(upb_msg_field_begin(&iter, intern->msgdef), i = 0; in PHP_METHOD() 644 RETURN_LONG(upb_msgdef_numfields(intern->msgdef)); in PHP_METHOD() 663 int field_num = upb_msgdef_numoneofs(intern->msgdef); in PHP_METHOD() 671 for(upb_msg_oneof_begin(&iter, intern->msgdef), i = 0; in PHP_METHOD() [all …]
|
D | def.h | 54 const upb_msgdef *msgdef; member
|
D | convert.c | 479 const upb_msgdef *subm = desc ? desc->msgdef : NULL; in Convert_PhpToUpbAutoWrap()
|
D | php-upb.c | 3436 const upb_msgdef *msgdef; member 3449 const upb_msgdef *msgdef; member 3682 UPB_ASSERT(f->msgdef == m); in assign_msg_indices() 3921 return f->msgdef; in upb_fielddef_containingtype() 3988 return upb_fielddef_type(f) == UPB_TYPE_MESSAGE ? f->sub.msgdef : NULL; in upb_fielddef_msgsubdef() 3996 return &f->msgdef->layout->fields[f->layout_index]; in upb_fielddef_layout() 4857 f->msgdef = m; in create_fielddef() 5179 f->msgdef = symtab_resolve(ctx, f, prefix, name, UPB_DEFTYPE_MSG); in resolve_fielddef() 5180 CHK(f->msgdef); in resolve_fielddef() 5193 f->sub.msgdef = symtab_resolve(ctx, f, prefix, name, UPB_DEFTYPE_MSG); in resolve_fielddef() [all …]
|
/third_party/protobuf/ruby/ext/google/protobuf_c/ |
D | storage.c | 463 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef) { in map_entry_key() argument 464 const upb_fielddef* key_field = upb_msgdef_itof(msgdef, MAP_KEY_FIELD); in map_entry_key() 469 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef) { in map_entry_value() argument 470 const upb_fielddef* value_field = upb_msgdef_itof(msgdef, MAP_VALUE_FIELD); in map_entry_value() 496 const upb_msgdef *msgdef = desc->msgdef; in create_layout() local 498 int nfields = upb_msgdef_numfields(msgdef); in create_layout() 499 int noneofs = upb_msgdef_numrealoneofs(msgdef); in create_layout() 529 for (upb_msg_field_begin(&it, msgdef); in create_layout() 553 for (upb_msg_field_begin(&it, msgdef); in create_layout() 568 for (upb_msg_field_begin(&it, msgdef); in create_layout() [all …]
|
D | encode_decode.c | 773 static void add_handlers_for_mapentry(const upb_msgdef* msgdef, upb_handlers* h, in add_handlers_for_mapentry() argument 775 const upb_fielddef* key_field = map_entry_key(msgdef); in add_handlers_for_mapentry() 776 const upb_fielddef* value_field = map_entry_value(msgdef); in add_handlers_for_mapentry() 777 map_handlerdata_t* hd = new_map_handlerdata(0, msgdef, desc); in add_handlers_for_mapentry() 794 static void add_handlers_for_wrapper(const upb_msgdef* msgdef, in add_handlers_for_wrapper() argument 796 const upb_fielddef* f = upb_msgdef_itof(msgdef, 1); in add_handlers_for_wrapper() 797 switch (upb_msgdef_wellknowntype(msgdef)) { in add_handlers_for_wrapper() 903 const upb_msgdef* msgdef = upb_handlers_msgdef(h); in add_handlers_for_message() local 905 ruby_to_Descriptor(get_msgdef_obj(descriptor_pool, msgdef)); in add_handlers_for_message() 919 if (upb_msgdef_mapentry(msgdef)) { in add_handlers_for_message() [all …]
|
D | message.c | 168 !upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call() 174 !upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call() 183 has_field = upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call() 199 if (upb_msgdef_lookupname(self->descriptor->msgdef, wrapper_field_name, in extract_method_call() 226 if (upb_msgdef_lookupname(self->descriptor->msgdef, enum_name, name_len - 6, in extract_method_call() 422 f = upb_msgdef_ntofz(self->descriptor->msgdef, name); in Message_initialize_kwarg() 623 upb_msgdef_syntax(self->descriptor->msgdef) == UPB_SYNTAX_PROTO2; in Message_to_h() 625 for (upb_msg_field_begin(&it, self->descriptor->msgdef); in Message_to_h() 679 field = upb_msgdef_ntofz(self->descriptor->msgdef, RSTRING_PTR(field_name)); in Message_index() 698 field = upb_msgdef_ntofz(self->descriptor->msgdef, RSTRING_PTR(field_name)); in Message_index_set() [all …]
|
D | defs.c | 451 const upb_msgdef* msgdef; in DescriptorPool_lookup() local 454 msgdef = upb_symtab_lookupmsg(self->symtab, name_str); in DescriptorPool_lookup() 455 if (msgdef) { in DescriptorPool_lookup() 456 return get_msgdef_obj(_self, msgdef); in DescriptorPool_lookup() 515 self->msgdef = NULL; in Descriptor_alloc() 555 self->msgdef = (const upb_msgdef*)NUM2ULL(ptr); in Descriptor_initialize() 568 return get_filedef_obj(self->descriptor_pool, upb_msgdef_file(self->msgdef)); in Descriptor_file_descriptor() 580 return rb_str_maybe_null(upb_msgdef_fullname(self->msgdef)); in Descriptor_name() 593 for (upb_msg_field_begin(&it, self->msgdef); in Descriptor_each() 613 const upb_fielddef* field = upb_msgdef_ntofz(self->msgdef, s); in Descriptor_lookup() [all …]
|
D | protobuf.h | 122 const upb_msgdef* msgdef; member 399 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef); 400 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef); 523 const upb_msgdef* msgdef; member
|
D | upb.c | 2991 const upb_msgdef *msgdef; member 3004 const upb_msgdef *msgdef; member 3237 UPB_ASSERT(f->msgdef == m); in assign_msg_indices() 3476 return f->msgdef; in upb_fielddef_containingtype() 3544 return f->sub.msgdef; in upb_fielddef_msgsubdef() 3553 return &f->msgdef->layout->fields[f->layout_index]; in upb_fielddef_layout() 4394 f->msgdef = m; in create_fielddef() 4708 f->msgdef = symtab_resolve(ctx, f, prefix, name, UPB_DEFTYPE_MSG); in resolve_fielddef() 4709 CHK(f->msgdef); in resolve_fielddef() 4722 f->sub.msgdef = symtab_resolve(ctx, f, prefix, name, UPB_DEFTYPE_MSG); in resolve_fielddef() [all …]
|
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyBuilder.java | 90 RubyDescriptor msgdef = (RubyDescriptor) cDescriptor.newInstance(context, Block.NULL_BLOCK); in addMessage() local 91 … IRubyObject ctx = cMessageBuilderContext.newInstance(context, msgdef, this, Block.NULL_BLOCK); in addMessage() 92 msgdef.setName(context, name); in addMessage() 102 this.pendingList.add(msgdef); in addMessage()
|
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/ |
D | basic.rb | 1199 msgdef = m.class.descriptor 1200 assert msgdef.class == Google::Protobuf::Descriptor 1201 assert msgdef.any? {|field| field.name == "optional_int32"} 1202 optional_int32 = msgdef.lookup "optional_int32" 1212 optional_msg = msgdef.lookup "optional_msg" 1217 assert msgdef.msgclass == TestMessage 1219 optional_enum = msgdef.lookup "optional_enum"
|
/third_party/grpc/third_party/upb/upb/bindings/lua/ |
D | def.c | 340 static bool lupb_msgdef_pushnested(lua_State *L, int msgdef, int name) { in lupb_msgdef_pushnested() argument 341 const upb_msgdef *m = lupb_msgdef_check(L, msgdef); in lupb_msgdef_pushnested() 342 lupb_wrapper_pushsymtab(L, msgdef); in lupb_msgdef_pushnested() 356 lupb_wrapper_pushwrapper(L, msgdef, nested, LUPB_MSGDEF); in lupb_msgdef_pushnested()
|
/third_party/grpc/third_party/upb/upb/ |
D | def.c | 20 const upb_msgdef *msgdef; member 33 const upb_msgdef *msgdef; member 398 return f->msgdef; in upb_fielddef_containingtype() 465 return upb_fielddef_type(f) == UPB_TYPE_MESSAGE ? f->sub.msgdef : NULL; in upb_fielddef_msgsubdef() 473 return &f->msgdef->layout->fields[f->layout_index]; in upb_fielddef_layout() 1214 UPB_ASSERT(f->msgdef == m); in assign_msg_indices() 1597 f->msgdef = m; in create_fielddef() 1898 f->msgdef = symtab_resolve(ctx, f, prefix, name, UPB_DEFTYPE_MSG); in resolve_fielddef() 1909 f->sub.msgdef = symtab_resolve(ctx, f, prefix, name, UPB_DEFTYPE_MSG); in resolve_fielddef()
|
/third_party/protobuf/ruby/tests/ |
D | common_tests.rb | 1034 msgdef = m.class.descriptor 1035 assert msgdef.class == Google::Protobuf::Descriptor 1036 assert msgdef.any? {|field| field.name == "optional_int32"} 1037 optional_int32 = msgdef.lookup "optional_int32" 1047 optional_msg = msgdef.lookup "optional_msg" 1052 assert msgdef.msgclass == proto_module::TestMessage 1054 optional_enum = msgdef.lookup "optional_enum"
|