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['hotbar_button_assignments'].message_type = _HOTBARBUTTONDATA
_SAVEDDATA.fields_by_name['skill_key_map'].message_type = _SKILLKEYMAPPING
_SAVEDDATA.fields_by_name['hireling_saved_data'].message_type = Hireling_pb2._SAVEDDATA
_SAVEDDATA.fields_by_name['learned_lore'].message_type = _LEARNEDLORE
_SAVEDDATA.fields_by_name['saved_conversations'].message_type = _SAVEDCONVERSATIONS