Lines Matching refs:Descriptor
82 // const Descriptor* descriptor = foo->GetDescriptor();
86 // const FieldDescriptor* text_field = descriptor->FindFieldByName("text");
90 // const FieldDescriptor* numbers_field = descriptor->
126 #include <google/protobuf/descriptor.h>
155 const Descriptor* descriptor;
168 // the optimize_for option in descriptor.proto.
182 // must have the same descriptor, but need not necessarily be the same class.
239 // Parse a protocol buffer from a file descriptor. If successful, the entire
252 // Serialize the message and write it to the given file descriptor. All
293 // Get a Descriptor for this message's type. This describes what
295 const Descriptor* GetDescriptor() const { return GetMetadata().descriptor; }
495 // does not live in the same pool as the containing message's descriptor (e.g.
676 int ctype, const Descriptor* message_type) const = 0;
681 // FieldOptions::* which are defined in descriptor.pb.h. Including that
695 // Given a Descriptor, gets or constructs the default (prototype) Message
699 // Calling this method twice with the same Descriptor returns the same
705 // The given descriptor must outlive the returned message, and hence must
709 // return NULL if the descriptor passed in is not supported.
713 virtual const Message* GetPrototype(const Descriptor* type) = 0;
718 // FooMessage::descriptor()) == FooMessage::default_instance()
720 // DescriptorPool::generated_pool(). If given a descriptor from any other
722 // descriptor is for a generated message by checking if
723 // descriptor->file()->pool() == DescriptorPool::generated_pool().)
733 // is called with a descriptor from this file, |register_messages| will be
737 // built lazily, so we can't register types by their descriptor until we
738 // know that the descriptor exists. |filename| must be a permanent string.
745 static void InternalRegisterGeneratedMessage(const Descriptor* descriptor,
778 // a method with signature "static const google::protobuf::Descriptor* descriptor()".