Lines Matching refs:MESSAGE
178 * Invokes the block with a Builder instance as self. All message and enum types
182 * idiomatic way to define new message and enum types.
214 * which generated-code message and enum types are registered. The user may also
269 * Creates a new, empty, message type descriptor. At a minimum, its name must be
312 * Returns the name of this message type as a fully-qualfied string (e.g.,
324 * Assigns a name to this message type. The descriptor must not have been added
341 * Iterates over fields in this message type, yielding to the block on each one.
378 * Adds the given FieldDescriptor to this message type. This descriptor must not
381 * message) are not resolved at this point.
399 * Adds the given OneofDescriptor to this message type. This descriptor must not
402 * conflict with an existing field in this message type. All fields in the oneof
403 * are added to the message descriptor. Sub-type references (e.g. for fields of
404 * type message) are not resolved at this point.
422 * Invokes the given block for each oneof in this message type, passing the
460 * Returns the Ruby class created for this message type. Valid only once the
461 * message type has been added to a pool.
467 "Cannot fetch message class from a Descriptor not yet in a pool.");
495 * added to a message type.
542 * Sets the name of this field. Cannot be called once the containing message
569 CONVERT(MESSAGE, message);
591 CONVERT(MESSAGE, message);
617 CONVERT(MESSAGE, message);
646 CONVERT(MESSAGE, message);
672 * :bytes, :message.
686 * Sets this field's type. Cannot be called if field is part of a message type
725 * Sets the label on this field. Cannot be called if field is part of a message
775 * message type already in a pool.
789 * Returns the name of the message or enum type corresponding to this field, if
790 * it is a message or enum field (respectively), or nil otherwise. This type
792 * message type is added.
806 * Sets the name of the message or enum type corresponding to this field, if it
807 * is a message or enum field (respectively). This type name will be resolved
808 * within the context of the pool to which the containing message type is added.
809 * Cannot be called on field that are not of message or enum type, or on fields
810 * that are part of a message type already added to a pool.
828 * Returns the message or enum descriptor corresponding to this field's type if
829 * it is a message or enum field, respectively, or nil otherwise. Cannot be
830 * called *until* the containing message type is added to a pool (and thus
849 * FieldDescriptor.get(message) => value
851 * Returns the value set for this field on the given message. Raises an
852 * exception if message is of the wrong type.
859 rb_raise(rb_eTypeError, "get method called on wrong message type");
866 * FieldDescriptor.set(message, value)
869 * message. Raises an exception if message is of the wrong type. Performs the
877 rb_raise(rb_eTypeError, "set method called on wrong message type");
903 * to being added to a message descriptor which is subsequently added to a pool.
941 * message descriptor yet.
957 * the past, or the message to which this oneof belongs (if any), but may not
958 * have already been added to any other oneof or message. Otherwise, an
962 * the message to which this oneof belongs, if it belongs to one currently, or
963 * else will be added to any message to which the oneof is later added at the
1215 * Create a new message builder context around the given message descriptor and
1257 * Defines a new optional field on this message type with the given type, tag
1258 * number, and type class (for message and enum fields). The type must be a Ruby
1282 * Defines a new required field on this message type with the given type, tag
1283 * number, and type class (for message and enum fields). The type must be a Ruby
1288 * completeness. Any attempt to add a message type with required fields to a
1311 * Defines a new repeated field on this message type with the given type, tag
1312 * number, and type class (for message and enum fields). The type must be a Ruby
1337 * Defines a new map field on this message type with the given key and value
1338 * types, tag number, and type class (for message and enum value types). The key
1364 SYM2ID(key_type) == rb_intern("message")) {
1366 "Cannot add a map field with a float, double, enum, or message "
1370 // Create a new message descriptor for the map entry message, and create a
1413 // Add the map-entry message type to the current builder, and use the type
1427 FieldDescriptor_type_set(map_field, ID2SYM(rb_intern("message")));
1444 * then adds the oneof to the message.
1522 * and type class (for message and enum fields). The type must be a Ruby symbol
1630 * Creates a new Builder. A Builder can accumulate a set of new message and enum
1660 * methods to define the message fields.
1662 * This is the recommended, idiomatic way to build message definitions.
1724 * Adds all accumulated message and enum descriptors created in this builder
1727 * way to build (co)recursive message definitions.