Home | History | Annotate | Download | only in protobuf_c

Lines Matching refs:fielddef

387   upb_fielddef* mut_field_def = check_field_notfrozen(def->fielddef);
391 add_def_obj(def->fielddef, obj);
486 upb_fielddef_unref(self->fielddef, &self->fielddef);
500 upb_fielddef* fielddef = upb_fielddef_new(&self->fielddef);
501 upb_fielddef_setpacked(fielddef, false);
502 self->fielddef = fielddef;
535 return rb_str_maybe_null(upb_fielddef_name(self->fielddef));
547 upb_fielddef* mut_def = check_field_notfrozen(self->fielddef);
676 if (!upb_fielddef_typeisset(self->fielddef)) {
679 return descriptortype_to_ruby(upb_fielddef_descriptortype(self->fielddef));
691 upb_fielddef* mut_def = check_field_notfrozen(self->fielddef);
707 switch (upb_fielddef_label(self->fielddef)) {
730 upb_fielddef* mut_def = check_field_notfrozen(self->fielddef);
767 return INT2NUM(upb_fielddef_number(self->fielddef));
779 upb_fielddef* mut_def = check_field_notfrozen(self->fielddef);
796 if (!upb_fielddef_hassubdef(self->fielddef)) {
799 return rb_str_maybe_null(upb_fielddef_subdefname(self->fielddef));
814 upb_fielddef* mut_def = check_field_notfrozen(self->fielddef);
816 if (!upb_fielddef_hassubdef(self->fielddef)) {
837 if (!upb_fielddef_hassubdef(self->fielddef)) {
840 def = upb_fielddef_subdef(self->fielddef);
858 if (msg->descriptor->msgdef != upb_fielddef_containingtype(self->fielddef)) {
861 return layout_get(msg->descriptor->layout, Message_data(msg), self->fielddef);
876 if (msg->descriptor->msgdef != upb_fielddef_containingtype(self->fielddef)) {
879 layout_set(msg->descriptor->layout, Message_data(msg), self->fielddef, value);
970 upb_fielddef* mut_field_def = check_field_notfrozen(def->fielddef);
974 add_def_obj(def->fielddef, obj);
1232 VALUE fielddef = rb_class_new_instance(0, NULL, cFieldDescriptor);
1235 rb_funcall(fielddef, rb_intern("label="), 1, ID2SYM(rb_intern(label)));
1236 rb_funcall(fielddef, rb_intern("name="), 1, name_str);
1237 rb_funcall(fielddef, rb_intern("type="), 1, type);
1238 rb_funcall(fielddef, rb_intern("number="), 1, number);
1246 rb_funcall(fielddef, rb_intern("submsg_name="), 1, type_class);
1249 rb_funcall(msgdef, rb_intern("add_field"), 1, fielddef);
1250 return fielddef;