Module ImportFrom alias alias alias alias alias alias alias ImportFrom alias ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If NameLoad body Return AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr keyword NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad keyword NameLoad orelse If AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr keyword NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad BoolOpOr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return NameLoad orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Dict For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareIsNot NameLoad NameLoad body Return AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement hashlib sha1 PayloadFieldAlreadyDefinedError N/A Exception N/A N/A N/A PayloadFrozenError N/A Exception N/A N/A N/A Payload N/A object N/A N/A A mapping from field names to PayloadField instances.

  A Target will add PayloadFields to its Payload until instantiation is finished, at which point
  freeze() will be called and make the Payload immutable.

  :API: public
   __init__ N/A N/A self N/A N/A N/A N/A self _fields N/A N/A N/A self _frozen False N/A N/A self _fingerprint_memo_map N/A N/A fields N/A N/A self N/A N/A N/A N/A N/A N/A self _fields items N/A property freeze N/A N/A self N/A N/A N/A Permanently make this Payload instance immutable.

    No more fields can be added after calling freeze().

    :API: public
     N/A N/A self _frozen True N/A get_field N/A N/A self key default N/A None N/A N/A An alternative to attribute access for duck typing Payload instances.

    Has the same semantics as dict.get, and in fact just delegates to the underlying field mapping.

    :API: public
     N/A N/A N/A N/A self _fields get key default N/A get_field_value N/A N/A self key default N/A None N/A N/A Retrieves the value in the payload field if the field exists, otherwise returns the default.

    :API: public
     N/A N/A key N/A self _fields N/A N/A payload_field N/A N/A self _fields N/A key N/A payload_field N/A N/A N/A payload_field value N/A default N/A add_fields N/A N/A self field_dict N/A N/A N/A Add a mapping of field names to PayloadField instances.

    :API: public
     N/A N/A key field N/A N/A field_dict items N/A N/A N/A N/A self add_field key field N/A add_field N/A N/A self key field N/A N/A N/A Add a field to the Payload.

    :API: public

    :param string key:  The key for the field.  Fields can be accessed using attribute access as
      well as `get_field` using `key`.
    :param PayloadField field:  A PayloadField instance.  None is an allowable value for `field`,
      in which case it will be skipped during hashing.
     N/A N/A key N/A self _fields N/A N/A N/A PayloadFieldAlreadyDefinedError N/A N/A Key {key} is already set on this payload. The existing field was {existing_field}. Tried to set new field {field}. format key key existing_field N/A N/A self _fields N/A key field field N/A N/A N/A self _frozen N/A N/A N/A PayloadFrozenError N/A N/A Payload is frozen, field with key {key} cannot be added to it. format key key N/A N/A N/A N/A self _fields N/A key field N/A N/A self _fingerprint_memo None N/A fingerprint N/A N/A self field_keys N/A None N/A N/A A memoizing fingerprint that rolls together the fingerprints of underlying PayloadFields.

    If no fields were hashed (or all fields opted out of being hashed by returning `None`), then
    `fingerprint()` also returns `None`.

    :param iterable<string> field_keys: A subset of fields to use for the fingerprint.  Defaults
                                        to all fields.
     N/A field_keys N/A frozenset N/A field_keys N/A N/A N/A self _fields keys N/A N/A field_keys N/A self _fingerprint_memo_map N/A N/A N/A N/A self _fingerprint_memo_map N/A field_keys N/A N/A self _compute_fingerprint field_keys N/A N/A N/A self _fingerprint_memo_map N/A field_keys N/A _compute_fingerprint N/A N/A self field_keys N/A N/A N/A hasher N/A sha1 N/A empty_hash True N/A key N/A sorted field_keys N/A N/A field N/A N/A self _fields N/A key N/A N/A field None N/A N/A fp N/A N/A field fingerprint N/A N/A fp None N/A N/A empty_hash False N/A N/A N/A hasher update N/A N/A N/A sha1 key hexdigest N/A N/A N/A hasher update fp N/A empty_hash N/A N/A None N/A N/A N/A N/A hasher hexdigest N/A mark_dirty N/A N/A self N/A N/A N/A Invalidates memoized fingerprints for this payload.

    Exposed for testing.

    :API: public
     N/A N/A self _fingerprint_memo_map N/A N/A field N/A N/A N/A self _fields values N/A N/A N/A N/A field mark_dirty N/A __getattr__ N/A N/A self attr N/A N/A N/A field N/A N/A self _fields N/A attr N/A N/A field None N/A N/A N/A field value N/A N/A None N/A __hasattr__ N/A N/A self attr N/A N/A N/A N/A attr N/A self _fields N/A N/A