~ubuntu-branches/ubuntu/trusty/protobuf/trusty-proposed

« back to all changes in this revision

Viewing changes to java/src/main/java/com/google/protobuf/Descriptors.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-05-31 14:41:47 UTC
  • mfrom: (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110531144147-s41g5fozgvyo462l
Tags: 2.4.0a-2ubuntu1
* Merge with Debian; remaining changes:
  - Fix linking with -lpthread.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 * its fields and other information about a type.  You can get a message
47
47
 * type's descriptor by calling {@code MessageType.getDescriptor()}, or
48
48
 * (given a message object of the type) {@code message.getDescriptorForType()}.
 
49
 * Furthermore, each message is associated with a {@link FileDescriptor} for
 
50
 * a relevant {@code .proto} file. You can obtain it by calling
 
51
 * {@code Descriptor.getFile()}. A {@link FileDescriptor} contains descriptors
 
52
 * for all the messages defined in that file, and file descriptors for all the
 
53
 * imported {@code .proto} files.
49
54
 *
50
55
 * Descriptors are built from DescriptorProtos, as defined in
51
56
 * {@code google/protobuf/descriptor.proto}.
55
60
public final class Descriptors {
56
61
  /**
57
62
   * Describes a {@code .proto} file, including everything defined within.
 
63
   * That includes, in particular, descriptors for all the messages and
 
64
   * file descriptors for all other imported {@code .proto} files
 
65
   * (dependencies).
58
66
   */
59
67
  public static final class FileDescriptor {
60
68
    /** Convert the descriptor to its protocol message representation. */