Package com.google.protobuf
Class Descriptors
java.lang.Object
com.google.protobuf.Descriptors
Contains a collection of classes which describe protocol message types.
Every message type has a
Descriptors.Descriptor, which lists all
its fields and other information about a type. You can get a message
type's descriptor by calling MessageType.getDescriptor(), or
(given a message object of the type) message.getDescriptorForType().
Furthermore, each message is associated with a Descriptors.FileDescriptor for
a relevant .proto file. You can obtain it by calling
Descriptor.getFile(). A Descriptors.FileDescriptor contains descriptors
for all the messages defined in that file, and file descriptors for all the
imported .proto files.
Descriptors are built from DescriptorProtos, as defined in
google/protobuf/descriptor.proto.- Author:
- kenton@google.com Kenton Varda
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescribes a message type.static classThrown when building descriptors fails because the source DescriptorProtos are not valid.static final classDescribes an enum type.static final classDescribes one value within an enum type.static final classDescribes a field of a message type.static final classDescribes a.protofile, including everything defined within.static classAll descriptors implement this to make it easier to implement tools likeDescriptorPool.static final classDescribes one method within a service type.static final classDescribes an oneof of a message type.static final classDescribes a service type. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Descriptors
public Descriptors()
-