Lines Matching defs:field
53 google_protobuf_FieldDescriptorProto* field) {
62 if (google_protobuf_FieldDescriptorProto_type(field) !=
64 !google_protobuf_FieldDescriptorProto_has_default_value(field) ||
65 !google_protobuf_FieldDescriptorProto_has_type_name(field)) {
69 defaultval = google_protobuf_FieldDescriptorProto_default_value(field);
70 type_name = google_protobuf_FieldDescriptorProto_type_name(field);
98 field, upb_strview_makez(label));
123 field, google_protobuf_EnumValueDescriptorProto_name(values[i]));
596 const upb_fielddef* field = upb_msg_iter_field(&it);
597 VALUE obj = get_fielddef_obj(self->descriptor_pool, field);
607 * Returns the field descriptor for the field with the given name, if present,
613 const upb_fielddef* field = upb_msgdef_ntofz(self->msgdef, s);
614 if (field == NULL) {
617 return get_fielddef_obj(self->descriptor_pool, field);
776 * FieldDescriptor.new => field
778 * Returns a new field descriptor. Its name, type, etc. must be set before it is
833 * Returns the name of this field.
842 rb_raise(rb_eArgError, "Expected symbol for field type.");
864 rb_raise(rb_eArgError, "Unknown field type.");
890 rb_raise(rb_eArgError, "Expected symbol for field type.");
919 rb_raise(rb_eArgError, "Unknown field type.");
967 rb_raise(rb_eArgError, "Unknown field label.");
977 * Returns this field's type, as a Ruby symbol, or nil if not yet set.
979 * Valid field types are:
992 * Returns this field's default, as a Ruby object, or nil if not yet set.
1003 * Returns this field's label (i.e., plurality), as a Ruby symbol.
1005 * Valid field labels are:
1028 * Returns the tag number for this field.
1039 * Returns the name of the message or enum type corresponding to this field, if
1040 * it is a message or enum field (respectively), or nil otherwise. This type
1062 * Returns the message or enum descriptor corresponding to this field's type if
1063 * it is a message or enum field, respectively, or nil otherwise. Cannot be
1085 * Returns the value set for this field on the given message. Raises an
1122 * Clears the field from the message if it's set.
1140 * Sets the value corresponding to this field to the given value on the given
1142 * ordinary type-checks for field setting.
1564 * Defines a new optional field on this message type with the given type, tag
1593 * Defines a true proto3 optional field (that tracks presence) on this message
1624 * Defines a new required field on this message type with the given type, tag
1656 * Defines a new repeated field on this message type with the given type, tag
1683 * Defines a new map field on this message type with the given key and value
1707 // as map keys. (We exclude these explicitly, and the field-descriptor setter
1714 "Cannot add a map field with a float, double, enum, or message "
1725 "Cannot add a native map field using proto2 syntax.");
1729 // repeated submessage field here with that type.
1906 * Defines a new optional field in this oneof with the given type, tag number,