Lines Matching refs:Descriptor
43 layout_mark(self->descriptor->layout, Message_data(self));
56 VALUE descriptor = rb_ivar_get(klass, descriptor_instancevar_interned);
57 Descriptor* desc = ruby_to_Descriptor(descriptor);
67 msg->descriptor = desc;
68 rb_ivar_set(ret, descriptor_instancevar_interned, descriptor);
94 self->descriptor->layout->
155 if (!upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, &f,
173 layout_set(self->descriptor->layout, Message_data(self), f, argv[1]);
176 return layout_get(self->descriptor->layout, Message_data(self), f);
195 f = upb_msgdef_ntofz(self->descriptor->msgdef, name);
208 map = layout_get(self->descriptor->layout, Message_data(self), f);
217 ary = layout_get(self->descriptor->layout, Message_data(self), f);
222 layout_set(self->descriptor->layout, Message_data(self), f, val);
272 layout_dup(self->descriptor->layout,
289 layout_deep_copy(self->descriptor->layout,
311 if (self->descriptor != other->descriptor) {
315 return layout_eq(self->descriptor->layout,
330 return layout_hash(self->descriptor->layout, Message_data(self));
350 self->descriptor->layout, Message_data(self)));
364 for (upb_msg_field_begin(&it, self->descriptor->msgdef);
368 VALUE msg_value = layout_get(self->descriptor->layout, Message_data(self),
393 field = upb_msgdef_ntofz(self->descriptor->msgdef, RSTRING_PTR(field_name));
397 return layout_get(self->descriptor->layout, Message_data(self), field);
412 field = upb_msgdef_ntofz(self->descriptor->msgdef, RSTRING_PTR(field_name));
416 layout_set(self->descriptor->layout, Message_data(self), field, value);
422 * Message.descriptor => descriptor
424 * Class method that returns the Descriptor instance corresponding to this
431 VALUE build_class_from_descriptor(Descriptor* desc) {
444 rb_raise(rb_eRuntimeError, "Descriptor does not have assigned name.");
477 rb_define_singleton_method(klass, "descriptor", Message_descriptor, 0);
525 * Enum.descriptor
555 rb_define_singleton_method(mod, "descriptor", enum_descriptor, 0);