Home
last modified time | relevance | path

Searched refs:msgdef (Results 1 – 17 of 17) sorted by relevance

/external/protobuf/ruby/ext/google/protobuf_c/
Dstorage.c436 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef) { in map_entry_key() argument
437 const upb_fielddef* key_field = upb_msgdef_itof(msgdef, MAP_KEY_FIELD); in map_entry_key()
442 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef) { in map_entry_value() argument
443 const upb_fielddef* value_field = upb_msgdef_itof(msgdef, MAP_VALUE_FIELD); in map_entry_value()
463 MessageLayout* create_layout(const upb_msgdef* msgdef) { in create_layout() argument
465 int nfields = upb_msgdef_numfields(msgdef); in create_layout()
473 for (upb_msg_field_begin(&it, msgdef); in create_layout()
489 for (upb_msg_field_begin(&it, msgdef); in create_layout()
528 for (upb_msg_oneof_begin(&oit, msgdef); in create_layout()
550 for (upb_msg_oneof_begin(&oit, msgdef); in create_layout()
[all …]
Ddefs.c139 upb_symtab_add(self->symtab, (upb_def**)&descriptor->msgdef, 1, in add_descriptor_to_pool()
235 upb_msgdef_unref(self->msgdef, &self->msgdef); in Descriptor_free()
276 self->msgdef = upb_msgdef_new(&self->msgdef); in Descriptor_alloc()
320 upb_filedef_addmsg(file_descriptor->filedef, self->msgdef, NULL, &status), in Descriptor_initialize()
335 return get_def_obj(upb_def_file(self->msgdef)); in Descriptor_file_descriptor()
347 return rb_str_maybe_null(upb_msgdef_fullname(self->msgdef)); in Descriptor_name()
359 upb_msgdef* mut_def = check_msg_notfrozen(self->msgdef); in Descriptor_name_set()
377 for (upb_msg_field_begin(&it, self->msgdef); in Descriptor_each()
397 const upb_fielddef* field = upb_msgdef_ntofz(self->msgdef, s); in Descriptor_lookup()
415 upb_msgdef* mut_def = check_msg_notfrozen(self->msgdef); in Descriptor_add_field()
[all …]
Dmessage.c170 !upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call()
176 !upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call()
185 bool has_field = upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call()
200 if (upb_msgdef_lookupname(self->descriptor->msgdef, wrapper_field_name, name_len - 9, in extract_method_call()
228 if (upb_msgdef_lookupname(self->descriptor->msgdef, enum_name, name_len - 6, in extract_method_call()
415 f = upb_msgdef_ntofz(self->descriptor->msgdef, name); in Message_initialize_kwarg()
607 for (upb_msg_field_begin(&it, self->descriptor->msgdef); in Message_to_h()
613 if (upb_msgdef_syntax(self->descriptor->msgdef) == UPB_SYNTAX_PROTO2 && in Message_to_h()
626 if (upb_msgdef_syntax(self->descriptor->msgdef) == UPB_SYNTAX_PROTO2 && in Message_to_h()
661 field = upb_msgdef_ntofz(self->descriptor->msgdef, RSTRING_PTR(field_name)); in Message_index()
[all …]
Dencode_decode.c630 static void add_handlers_for_mapentry(const upb_msgdef* msgdef, in add_handlers_for_mapentry() argument
633 const upb_fielddef* key_field = map_entry_key(msgdef); in add_handlers_for_mapentry()
634 const upb_fielddef* value_field = map_entry_value(msgdef); in add_handlers_for_mapentry()
635 map_handlerdata_t* hd = new_map_handlerdata(0, msgdef, desc); in add_handlers_for_mapentry()
715 const upb_msgdef* msgdef = upb_handlers_msgdef(h); in add_handlers_for_message() local
716 Descriptor* desc = ruby_to_Descriptor(get_def_obj((void*)msgdef)); in add_handlers_for_message()
721 if (upb_msgdef_mapentry(msgdef)) { in add_handlers_for_message()
722 add_handlers_for_mapentry(msgdef, h, desc); in add_handlers_for_message()
731 desc->layout = create_layout(desc->msgdef); in add_handlers_for_message()
737 for (upb_msg_field_begin(&i, desc->msgdef); in add_handlers_for_message()
[all …]
Dprotobuf.h114 const upb_msgdef* msgdef; member
388 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef);
389 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef);
505 const upb_msgdef* msgdef; member
510 MessageLayout* create_layout(const upb_msgdef* msgdef);
Dupb.h1946 UPB_DECLARE_DEF_TYPE(upb::MessageDef, msgdef, MSG)
2365 packed, name, num, msgdef, subdef, selector_base, \
2369 defaultval, {msgdef}, {subdef}, NULL, false, false, \
/external/protobuf/php/ext/google/protobuf/
Ddef.c157 desc->msgdef = NULL; in descriptor_init_c_instance()
174 const char* fullname = upb_msgdef_fullname(intern->msgdef); in PHP_METHOD()
187 int field_num = upb_msgdef_numfields(intern->msgdef); in PHP_METHOD()
195 for(upb_msg_field_begin(&iter, intern->msgdef), i = 0; in PHP_METHOD()
228 RETURN_LONG(upb_msgdef_numfields(intern->msgdef)); in PHP_METHOD()
240 int field_num = upb_msgdef_numoneofs(intern->msgdef); in PHP_METHOD()
248 for(upb_msg_oneof_begin(&iter, intern->msgdef), i = 0; in PHP_METHOD()
261 RETURN_LONG(upb_msgdef_numoneofs(intern->msgdef)); in PHP_METHOD()
461 const upb_msgdef *msgdef = upb_fielddef_msgsubdef(intern->fielddef); in PHP_METHOD() local
462 PHP_PROTO_HASHTABLE_VALUE desc = get_def_obj(msgdef); in PHP_METHOD()
[all …]
Dencode_decode.c915 static void add_handlers_for_mapentry(const upb_msgdef* msgdef, upb_handlers* h, in add_handlers_for_mapentry() argument
917 const upb_fielddef* key_field = map_entry_key(msgdef); in add_handlers_for_mapentry()
918 const upb_fielddef* value_field = map_entry_value(msgdef); in add_handlers_for_mapentry()
919 map_handlerdata_t* hd = new_map_handlerdata(0, msgdef, desc); in add_handlers_for_mapentry()
997 const upb_msgdef* msgdef = upb_handlers_msgdef(h); in add_handlers_for_message() local
1000 UNBOX_HASHTABLE_VALUE(Descriptor, get_def_obj((void*)msgdef)); in add_handlers_for_message()
1005 if (upb_msgdef_mapentry(msgdef)) { in add_handlers_for_message()
1006 add_handlers_for_mapentry(msgdef, h, desc); in add_handlers_for_message()
1015 desc->layout = create_layout(desc->msgdef); in add_handlers_for_message()
1022 for (upb_msg_field_begin(&i, desc->msgdef); in add_handlers_for_message()
[all …]
Dstorage.c540 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef) { in map_entry_key() argument
541 const upb_fielddef* key_field = upb_msgdef_itof(msgdef, MAP_KEY_FIELD); in map_entry_key()
546 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef) { in map_entry_value() argument
547 const upb_fielddef* value_field = upb_msgdef_itof(msgdef, MAP_VALUE_FIELD); in map_entry_value()
591 MessageLayout* create_layout(const upb_msgdef* msgdef) { in create_layout() argument
593 int nfields = upb_msgdef_numfields(msgdef); in create_layout()
603 Descriptor* desc = UNBOX_HASHTABLE_VALUE(Descriptor, get_def_obj(msgdef)); in create_layout()
606 for (upb_msg_field_begin(&it, msgdef); !upb_msg_field_done(&it); in create_layout()
676 for (upb_msg_oneof_begin(&oit, msgdef); !upb_msg_oneof_done(&oit); in create_layout()
727 for (upb_msg_oneof_begin(&oit, msgdef); !upb_msg_oneof_done(&oit); in create_layout()
[all …]
Dmessage.c128 field = upb_msgdef_ntofz(self->descriptor->msgdef, Z_STRVAL_P(member)); in message_set_property_internal()
165 field = upb_msgdef_ntofz(self->descriptor->msgdef, Z_STRVAL_P(member));
187 field = upb_msgdef_ntofz(self->descriptor->msgdef, Z_STRVAL_P(member));
279 if (upb_msgdef_mapentry(desc->msgdef)) {
286 MessageLayout* layout = create_layout(desc->msgdef);
320 field = upb_msgdef_itof(submsg->descriptor->msgdef, 1);
344 field = upb_msgdef_itof(submsg->descriptor->msgdef, 1);
372 field = upb_msgdef_ntofz(intern->descriptor->msgdef, Z_STRVAL_P(&key));
573 const upb_fielddef* field = upb_msgdef_itof(msg->descriptor->msgdef, index);
592 const upb_fielddef* field = upb_msgdef_itof(msg->descriptor->msgdef, index);
[all …]
Dprotobuf.h799 const upb_msgdef* msgdef;
928 const upb_msgdef* msgdef; member
939 MessageLayout* create_layout(const upb_msgdef* msgdef);
1080 const upb_fielddef* map_entry_key(const upb_msgdef* msgdef);
1081 const upb_fielddef* map_entry_value(const upb_msgdef* msgdef);
Dupb.c1120 const upb_msgdef *msgdef; member
1132 const upb_msgdef *msgdef; member
1329 UPB_ASSERT(f->msgdef == m); in assign_msg_indices()
1616 return f->msgdef; in upb_fielddef_containingtype()
1679 return f->sub.msgdef; in upb_fielddef_msgsubdef()
2216 f->msgdef = m; in create_fielddef()
2488 f->msgdef = symtab_resolve(ctx, f, prefix, name, UPB_DEFTYPE_MSG); in resolve_fielddef()
2489 CHK(f->msgdef); in resolve_fielddef()
2502 f->sub.msgdef = symtab_resolve(ctx, f, prefix, name, UPB_DEFTYPE_MSG); in resolve_fielddef()
2503 CHK(f->sub.msgdef); in resolve_fielddef()
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyBuilder.java90 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()
/external/protobuf/ruby/compatibility_tests/v3.0.0/tests/
Dbasic.rb1202 msgdef = m.class.descriptor
1203 assert msgdef.class == Google::Protobuf::Descriptor
1204 assert msgdef.any? {|field| field.name == "optional_int32"}
1205 optional_int32 = msgdef.lookup "optional_int32"
1215 optional_msg = msgdef.lookup "optional_msg"
1220 assert msgdef.msgclass == TestMessage
1222 optional_enum = msgdef.lookup "optional_enum"
/external/protobuf/ruby/tests/
Dcommon_tests.rb1036 msgdef = m.class.descriptor
1037 assert msgdef.class == Google::Protobuf::Descriptor
1038 assert msgdef.any? {|field| field.name == "optional_int32"}
1039 optional_int32 = msgdef.lookup "optional_int32"
1049 optional_msg = msgdef.lookup "optional_msg"
1054 assert msgdef.msgclass == proto_module::TestMessage
1056 optional_enum = msgdef.lookup "optional_enum"
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/bindings/lua/
Ddef.c340 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()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/
Ddef.c20 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()