com.google.protobuf
Class Descriptors

java.lang.Object
  extended by com.google.protobuf.Descriptors

public final class Descriptors
extends java.lang.Object

Contains a collection of classes which describe protocol message types. Every message type has a Descriptors.FileDescriptor, 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(). Descriptors are built from DescriptorProtos, as defined in net/proto2/proto/descriptor.proto.

Author:
[email protected] Kenton Varda

Nested Class Summary
static class Descriptors.Descriptor
          Describes a message type.
static class Descriptors.DescriptorValidationException
          Thrown when building descriptors fails because the source DescriptorProtos are not valid.
static class Descriptors.EnumDescriptor
          Describes an enum type.
static class Descriptors.EnumValueDescriptor
          Describes one value within an enum type.
static class Descriptors.FieldDescriptor
          Describes a field of a message type.
static class Descriptors.FileDescriptor
          Describes a .proto file, including everything defined within.
static class Descriptors.MethodDescriptor
          Describes one method within a service type.
static class Descriptors.ServiceDescriptor
          Describes a service type.
 
Constructor Summary
Descriptors()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Descriptors

public Descriptors()


Copyright © 2008-2009 Google. All Rights Reserved.