App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.ext.ndb.msgprop.MessageProperty Class Reference
Inheritance diagram for google.appengine.ext.ndb.msgprop.MessageProperty:
google.appengine.ext.ndb.model.StructuredProperty google.appengine.ext.ndb.model._StructuredGetForDictMixin google.appengine.ext.ndb.model.Property google.appengine.ext.ndb.model.ModelAttribute

Public Member Functions

def __init__
 
- Public Member Functions inherited from google.appengine.ext.ndb.model.StructuredProperty
def __init__
 
def __getattr__
 
- Public Member Functions inherited from google.appengine.ext.ndb.model.Property
def __init__
 
def __repr__
 
def __eq__
 
def __ne__
 
def __lt__
 
def __le__
 
def __gt__
 
def __ge__
 
def __neg__
 
def __pos__
 
def __get__
 
def __set__
 
def __delete__
 

Additional Inherited Members

- Static Public Attributes inherited from google.appengine.ext.ndb.model.StructuredProperty
 IN = _IN
 
- Static Public Attributes inherited from google.appengine.ext.ndb.model.Property
 IN = _IN
 

Detailed Description

Messages are represented in the datastore as structured properties.

By default, the structured property has a single subproperty
containing the serialized message.  This property is named 'blob_'
in Python but __<protocol>__ in the Datastore, where <protocol> is
the value of the protocol argument (default 'protobuf').

Constructor & Destructor Documentation

def google.appengine.ext.ndb.msgprop.MessageProperty.__init__ (   self,
  message_type,
  name = None,
  indexed_fields = None,
  protocol = None,
  kwds 
)
Constructor.

Args:
  message_tyoe: A subclass of protorpc.messages.Message.
  name: Optional datastore name (defaults to the property name).
  indexed_fields: Optional list of dotted and undotted field names.
  protocol: Optional protocol name default 'protobuf'.

Additional keywords arguments specify the same options as
supported by StructuredProperty, except 'indexed'.

The documentation for this class was generated from the following file: