Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
Descriptor for a protocol message type.

A Descriptor instance has the following attributes:

  name: (str) Name of this protocol message type.
  full_name: (str) Fully-qualified name of this protocol message type,
    which will include protocol "package" name and the name of any
    enclosing types.

  containing_type: (Descriptor) Reference to the descriptor of the
    type containing us, or None if this is top-level.

  fields: (list of FieldDescriptors) Field descriptors for all
    fields in this type.
  fields_by_number: (dict int -> FieldDescriptor) Same FieldDescriptor
    objects as in |fields|, but indexed by "number" attribute in each
    FieldDescriptor.
  fields_by_name: (dict str -> FieldDescriptor) Same FieldDescriptor
    objects as in |fields|, but indexed by "name" attribute in each
    FieldDescriptor.

  nested_types: (list of Descriptors) Descriptor references
    for all protocol message types nested within this one.
  nested_types_by_name: (dict str -> Descriptor) Same Descriptor
    objects as in |nested_types|, but indexed by "name" attribute
    in each Descriptor.

  enum_types: (list of EnumDescriptors) EnumDescriptor references
    for all enums contained within this type.
  enum_types_by_name: (dict str ->EnumDescriptor) Same EnumDescriptor
    objects as in |enum_types|, but indexed by "name" attribute
    in each EnumDescriptor.
  enum_values_by_name: (dict str -> EnumValueDescriptor) Dict mapping
    from enum value name to EnumValueDescriptor for that value.

  extensions: (list of FieldDescriptor) All extensions defined directly
    within this message type (NOT within a nested type).
  extensions_by_name: (dict, string -> FieldDescriptor) Same FieldDescriptor
    objects as |extensions|, but indexed by "name" attribute of each
    FieldDescriptor.

  is_extendable:  Does this type define any extension ranges?

  options: (descriptor_pb2.MessageOptions) Protocol message options or None
    to use default message options.

  file: (FileDescriptor) Reference to file descriptor.

src/d/i/Diablo-III-Protocol-Simulator-HEAD/libs/proto/Hero_pb2.py   Diablo-III-Protocol-Simulator(Download)
_SAVEDDATA.fields_by_name['save_point'].message_type = _SAVEPOINTDATA_PROTO
_SAVEDDEFINITION.fields_by_name['digest'].message_type = _DIGEST
_SAVEDDEFINITION.fields_by_name['saved_attributes'].message_type = AttributeSerializer_pb2._SAVEDATTRIBUTES
_SAVEDDEFINITION.fields_by_name['saved_data'].message_type = _SAVEDDATA
_SAVEDDEFINITION.fields_by_name['saved_quest'].message_type = _SAVEDQUEST

src/d/i/Diablo-III-Protocol-Simulator-HEAD/libs/proto/Account_pb2.py   Diablo-III-Protocol-Simulator(Download)
_DIGEST_FLAGS.containing_type = _DIGEST;
_SAVEDDEFINITION.fields_by_name['digest'].message_type = _DIGEST
_SAVEDDEFINITION.fields_by_name['saved_attributes'].message_type = AttributeSerializer_pb2._SAVEDATTRIBUTES
_SAVEDDEFINITION.fields_by_name['normal_shared_saved_items'].message_type = Items_pb2._ITEMLIST
_SAVEDDEFINITION.fields_by_name['hardcore_shared_saved_items'].message_type = Items_pb2._ITEMLIST