thirdparty/google_appengine/google/appengine/datastore/entity_pb.py
changeset 2864 2e0b0af889be
parent 2309 be1b94099f2d
equal deleted inserted replaced
2862:27971a13089f 2864:2e0b0af889be
   781       res+=prefix+"ReferenceValue {\n"
   781       res+=prefix+"ReferenceValue {\n"
   782       res+=self.referencevalue_.__str__(prefix + "  ", printElemNumber)
   782       res+=self.referencevalue_.__str__(prefix + "  ", printElemNumber)
   783       res+=prefix+"}\n"
   783       res+=prefix+"}\n"
   784     return res
   784     return res
   785 
   785 
       
   786 
       
   787   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
   788     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
   789 
   786   kint64Value = 1
   790   kint64Value = 1
   787   kbooleanValue = 2
   791   kbooleanValue = 2
   788   kstringValue = 3
   792   kstringValue = 3
   789   kdoubleValue = 4
   793   kdoubleValue = 4
   790   kPointValueGroup = 5
   794   kPointValueGroup = 5
   801   kReferenceValuePathElementGroup = 14
   805   kReferenceValuePathElementGroup = 14
   802   kReferenceValuePathElementtype = 15
   806   kReferenceValuePathElementtype = 15
   803   kReferenceValuePathElementid = 16
   807   kReferenceValuePathElementid = 16
   804   kReferenceValuePathElementname = 17
   808   kReferenceValuePathElementname = 17
   805 
   809 
   806   _TEXT = (
   810   _TEXT = _BuildTagLookupTable({
   807    "ErrorCode",
   811     0: "ErrorCode",
   808    "int64Value",
   812     1: "int64Value",
   809    "booleanValue",
   813     2: "booleanValue",
   810    "stringValue",
   814     3: "stringValue",
   811    "doubleValue",
   815     4: "doubleValue",
   812    "PointValue",
   816     5: "PointValue",
   813    "x",
   817     6: "x",
   814    "y",
   818     7: "y",
   815    "UserValue",
   819     8: "UserValue",
   816    "email",
   820     9: "email",
   817    "auth_domain",
   821     10: "auth_domain",
   818    "nickname",
   822     11: "nickname",
   819    "ReferenceValue",
   823     12: "ReferenceValue",
   820    "app",
   824     13: "app",
   821    "PathElement",
   825     14: "PathElement",
   822    "type",
   826     15: "type",
   823    "id",
   827     16: "id",
   824    "name",
   828     17: "name",
   825    "gaiaid",
   829     18: "gaiaid",
   826    "obfuscated_gaiaid",
   830     19: "obfuscated_gaiaid",
   827   )
   831   }, 19)
   828 
   832 
   829   _TYPES = (
   833   _TYPES = _BuildTagLookupTable({
   830    ProtocolBuffer.Encoder.NUMERIC,
   834     0: ProtocolBuffer.Encoder.NUMERIC,
   831    ProtocolBuffer.Encoder.NUMERIC,
   835     1: ProtocolBuffer.Encoder.NUMERIC,
   832 
   836     2: ProtocolBuffer.Encoder.NUMERIC,
   833    ProtocolBuffer.Encoder.NUMERIC,
   837     3: ProtocolBuffer.Encoder.STRING,
   834 
   838     4: ProtocolBuffer.Encoder.DOUBLE,
   835    ProtocolBuffer.Encoder.STRING,
   839     5: ProtocolBuffer.Encoder.STARTGROUP,
   836 
   840     6: ProtocolBuffer.Encoder.DOUBLE,
   837    ProtocolBuffer.Encoder.DOUBLE,
   841     7: ProtocolBuffer.Encoder.DOUBLE,
   838 
   842     8: ProtocolBuffer.Encoder.STARTGROUP,
   839    ProtocolBuffer.Encoder.STARTGROUP,
   843     9: ProtocolBuffer.Encoder.STRING,
   840 
   844     10: ProtocolBuffer.Encoder.STRING,
   841    ProtocolBuffer.Encoder.DOUBLE,
   845     11: ProtocolBuffer.Encoder.STRING,
   842 
   846     12: ProtocolBuffer.Encoder.STARTGROUP,
   843    ProtocolBuffer.Encoder.DOUBLE,
   847     13: ProtocolBuffer.Encoder.STRING,
   844 
   848     14: ProtocolBuffer.Encoder.STARTGROUP,
   845    ProtocolBuffer.Encoder.STARTGROUP,
   849     15: ProtocolBuffer.Encoder.STRING,
   846 
   850     16: ProtocolBuffer.Encoder.NUMERIC,
   847    ProtocolBuffer.Encoder.STRING,
   851     17: ProtocolBuffer.Encoder.STRING,
   848 
   852     18: ProtocolBuffer.Encoder.NUMERIC,
   849    ProtocolBuffer.Encoder.STRING,
   853     19: ProtocolBuffer.Encoder.STRING,
   850 
   854   }, 19, ProtocolBuffer.Encoder.MAX_TYPE)
   851    ProtocolBuffer.Encoder.STRING,
       
   852 
       
   853    ProtocolBuffer.Encoder.STARTGROUP,
       
   854 
       
   855    ProtocolBuffer.Encoder.STRING,
       
   856 
       
   857    ProtocolBuffer.Encoder.STARTGROUP,
       
   858 
       
   859    ProtocolBuffer.Encoder.STRING,
       
   860 
       
   861    ProtocolBuffer.Encoder.NUMERIC,
       
   862 
       
   863    ProtocolBuffer.Encoder.STRING,
       
   864 
       
   865    ProtocolBuffer.Encoder.NUMERIC,
       
   866 
       
   867    ProtocolBuffer.Encoder.STRING,
       
   868 
       
   869   )
       
   870 
   855 
   871   _STYLE = """"""
   856   _STYLE = """"""
   872   _STYLE_CONTENT_TYPE = """"""
   857   _STYLE_CONTENT_TYPE = """"""
   873 class Property(ProtocolBuffer.ProtocolMessage):
   858 class Property(ProtocolBuffer.ProtocolMessage):
   874 
   859 
   886   GEORSS_POINT =    9
   871   GEORSS_POINT =    9
   887   GD_IM        =   10
   872   GD_IM        =   10
   888   GD_PHONENUMBER =   11
   873   GD_PHONENUMBER =   11
   889   GD_POSTALADDRESS =   12
   874   GD_POSTALADDRESS =   12
   890   GD_RATING    =   13
   875   GD_RATING    =   13
       
   876   BLOBKEY      =   17
   891 
   877 
   892   _Meaning_NAMES = {
   878   _Meaning_NAMES = {
   893     14: "BLOB",
   879     14: "BLOB",
   894     15: "TEXT",
   880     15: "TEXT",
   895     16: "BYTESTRING",
   881     16: "BYTESTRING",
   904     9: "GEORSS_POINT",
   890     9: "GEORSS_POINT",
   905     10: "GD_IM",
   891     10: "GD_IM",
   906     11: "GD_PHONENUMBER",
   892     11: "GD_PHONENUMBER",
   907     12: "GD_POSTALADDRESS",
   893     12: "GD_POSTALADDRESS",
   908     13: "GD_RATING",
   894     13: "GD_RATING",
       
   895     17: "BLOBKEY",
   909   }
   896   }
   910 
   897 
   911   def Meaning_Name(cls, x): return cls._Meaning_NAMES.get(x, "")
   898   def Meaning_Name(cls, x): return cls._Meaning_NAMES.get(x, "")
   912   Meaning_Name = classmethod(Meaning_Name)
   899   Meaning_Name = classmethod(Meaning_Name)
   913 
   900 
  1090       res+=self.value_.__str__(prefix + "  ", printElemNumber)
  1077       res+=self.value_.__str__(prefix + "  ", printElemNumber)
  1091       res+=prefix+">\n"
  1078       res+=prefix+">\n"
  1092     if self.has_multiple_: res+=prefix+("multiple: %s\n" % self.DebugFormatBool(self.multiple_))
  1079     if self.has_multiple_: res+=prefix+("multiple: %s\n" % self.DebugFormatBool(self.multiple_))
  1093     return res
  1080     return res
  1094 
  1081 
       
  1082 
       
  1083   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1084     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1085 
  1095   kmeaning = 1
  1086   kmeaning = 1
  1096   kmeaning_uri = 2
  1087   kmeaning_uri = 2
  1097   kname = 3
  1088   kname = 3
  1098   kvalue = 5
  1089   kvalue = 5
  1099   kmultiple = 4
  1090   kmultiple = 4
  1100 
  1091 
  1101   _TEXT = (
  1092   _TEXT = _BuildTagLookupTable({
  1102    "ErrorCode",
  1093     0: "ErrorCode",
  1103    "meaning",
  1094     1: "meaning",
  1104    "meaning_uri",
  1095     2: "meaning_uri",
  1105    "name",
  1096     3: "name",
  1106    "multiple",
  1097     4: "multiple",
  1107    "value",
  1098     5: "value",
  1108   )
  1099   }, 5)
  1109 
  1100 
  1110   _TYPES = (
  1101   _TYPES = _BuildTagLookupTable({
  1111    ProtocolBuffer.Encoder.NUMERIC,
  1102     0: ProtocolBuffer.Encoder.NUMERIC,
  1112    ProtocolBuffer.Encoder.NUMERIC,
  1103     1: ProtocolBuffer.Encoder.NUMERIC,
  1113 
  1104     2: ProtocolBuffer.Encoder.STRING,
  1114    ProtocolBuffer.Encoder.STRING,
  1105     3: ProtocolBuffer.Encoder.STRING,
  1115 
  1106     4: ProtocolBuffer.Encoder.NUMERIC,
  1116    ProtocolBuffer.Encoder.STRING,
  1107     5: ProtocolBuffer.Encoder.STRING,
  1117 
  1108   }, 5, ProtocolBuffer.Encoder.MAX_TYPE)
  1118    ProtocolBuffer.Encoder.NUMERIC,
       
  1119 
       
  1120    ProtocolBuffer.Encoder.STRING,
       
  1121 
       
  1122   )
       
  1123 
  1109 
  1124   _STYLE = """"""
  1110   _STYLE = """"""
  1125   _STYLE_CONTENT_TYPE = """"""
  1111   _STYLE_CONTENT_TYPE = """"""
  1126 class Path_Element(ProtocolBuffer.ProtocolMessage):
  1112 class Path_Element(ProtocolBuffer.ProtocolMessage):
  1127   has_type_ = 0
  1113   has_type_ = 0
  1319       res+=e.__str__(prefix + "  ", printElemNumber)
  1305       res+=e.__str__(prefix + "  ", printElemNumber)
  1320       res+=prefix+"}\n"
  1306       res+=prefix+"}\n"
  1321       cnt+=1
  1307       cnt+=1
  1322     return res
  1308     return res
  1323 
  1309 
       
  1310 
       
  1311   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1312     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1313 
  1324   kElementGroup = 1
  1314   kElementGroup = 1
  1325   kElementtype = 2
  1315   kElementtype = 2
  1326   kElementid = 3
  1316   kElementid = 3
  1327   kElementname = 4
  1317   kElementname = 4
  1328 
  1318 
  1329   _TEXT = (
  1319   _TEXT = _BuildTagLookupTable({
  1330    "ErrorCode",
  1320     0: "ErrorCode",
  1331    "Element",
  1321     1: "Element",
  1332    "type",
  1322     2: "type",
  1333    "id",
  1323     3: "id",
  1334    "name",
  1324     4: "name",
  1335   )
  1325   }, 4)
  1336 
  1326 
  1337   _TYPES = (
  1327   _TYPES = _BuildTagLookupTable({
  1338    ProtocolBuffer.Encoder.NUMERIC,
  1328     0: ProtocolBuffer.Encoder.NUMERIC,
  1339    ProtocolBuffer.Encoder.STARTGROUP,
  1329     1: ProtocolBuffer.Encoder.STARTGROUP,
  1340 
  1330     2: ProtocolBuffer.Encoder.STRING,
  1341    ProtocolBuffer.Encoder.STRING,
  1331     3: ProtocolBuffer.Encoder.NUMERIC,
  1342 
  1332     4: ProtocolBuffer.Encoder.STRING,
  1343    ProtocolBuffer.Encoder.NUMERIC,
  1333   }, 4, ProtocolBuffer.Encoder.MAX_TYPE)
  1344 
       
  1345    ProtocolBuffer.Encoder.STRING,
       
  1346 
       
  1347   )
       
  1348 
  1334 
  1349   _STYLE = """"""
  1335   _STYLE = """"""
  1350   _STYLE_CONTENT_TYPE = """"""
  1336   _STYLE_CONTENT_TYPE = """"""
  1351 class Reference(ProtocolBuffer.ProtocolMessage):
  1337 class Reference(ProtocolBuffer.ProtocolMessage):
  1352   has_app_ = 0
  1338   has_app_ = 0
  1445       res+=prefix+"path <\n"
  1431       res+=prefix+"path <\n"
  1446       res+=self.path_.__str__(prefix + "  ", printElemNumber)
  1432       res+=self.path_.__str__(prefix + "  ", printElemNumber)
  1447       res+=prefix+">\n"
  1433       res+=prefix+">\n"
  1448     return res
  1434     return res
  1449 
  1435 
       
  1436 
       
  1437   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1438     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1439 
  1450   kapp = 13
  1440   kapp = 13
  1451   kpath = 14
  1441   kpath = 14
  1452 
  1442 
  1453   _TEXT = (
  1443   _TEXT = _BuildTagLookupTable({
  1454    "ErrorCode",
  1444     0: "ErrorCode",
  1455    None,
  1445     13: "app",
  1456    None,
  1446     14: "path",
  1457    None,
  1447   }, 14)
  1458    None,
  1448 
  1459    None,
  1449   _TYPES = _BuildTagLookupTable({
  1460    None,
  1450     0: ProtocolBuffer.Encoder.NUMERIC,
  1461    None,
  1451     13: ProtocolBuffer.Encoder.STRING,
  1462    None,
  1452     14: ProtocolBuffer.Encoder.STRING,
  1463    None,
  1453   }, 14, ProtocolBuffer.Encoder.MAX_TYPE)
  1464    None,
       
  1465    None,
       
  1466    None,
       
  1467    "app",
       
  1468    "path",
       
  1469   )
       
  1470 
       
  1471   _TYPES = (
       
  1472    ProtocolBuffer.Encoder.NUMERIC,
       
  1473    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1474 
       
  1475    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1476 
       
  1477    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1478 
       
  1479    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1480 
       
  1481    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1482 
       
  1483    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1484 
       
  1485    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1486 
       
  1487    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1488 
       
  1489    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1490 
       
  1491    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1492 
       
  1493    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1494 
       
  1495    ProtocolBuffer.Encoder.MAX_TYPE,
       
  1496 
       
  1497    ProtocolBuffer.Encoder.STRING,
       
  1498 
       
  1499    ProtocolBuffer.Encoder.STRING,
       
  1500 
       
  1501   )
       
  1502 
  1454 
  1503   _STYLE = """"""
  1455   _STYLE = """"""
  1504   _STYLE_CONTENT_TYPE = """"""
  1456   _STYLE_CONTENT_TYPE = """"""
  1505 class User(ProtocolBuffer.ProtocolMessage):
  1457 class User(ProtocolBuffer.ProtocolMessage):
  1506   has_email_ = 0
  1458   has_email_ = 0
  1680     if self.has_nickname_: res+=prefix+("nickname: %s\n" % self.DebugFormatString(self.nickname_))
  1632     if self.has_nickname_: res+=prefix+("nickname: %s\n" % self.DebugFormatString(self.nickname_))
  1681     if self.has_gaiaid_: res+=prefix+("gaiaid: %s\n" % self.DebugFormatInt64(self.gaiaid_))
  1633     if self.has_gaiaid_: res+=prefix+("gaiaid: %s\n" % self.DebugFormatInt64(self.gaiaid_))
  1682     if self.has_obfuscated_gaiaid_: res+=prefix+("obfuscated_gaiaid: %s\n" % self.DebugFormatString(self.obfuscated_gaiaid_))
  1634     if self.has_obfuscated_gaiaid_: res+=prefix+("obfuscated_gaiaid: %s\n" % self.DebugFormatString(self.obfuscated_gaiaid_))
  1683     return res
  1635     return res
  1684 
  1636 
       
  1637 
       
  1638   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1639     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1640 
  1685   kemail = 1
  1641   kemail = 1
  1686   kauth_domain = 2
  1642   kauth_domain = 2
  1687   knickname = 3
  1643   knickname = 3
  1688   kgaiaid = 4
  1644   kgaiaid = 4
  1689   kobfuscated_gaiaid = 5
  1645   kobfuscated_gaiaid = 5
  1690 
  1646 
  1691   _TEXT = (
  1647   _TEXT = _BuildTagLookupTable({
  1692    "ErrorCode",
  1648     0: "ErrorCode",
  1693    "email",
  1649     1: "email",
  1694    "auth_domain",
  1650     2: "auth_domain",
  1695    "nickname",
  1651     3: "nickname",
  1696    "gaiaid",
  1652     4: "gaiaid",
  1697    "obfuscated_gaiaid",
  1653     5: "obfuscated_gaiaid",
  1698   )
  1654   }, 5)
  1699 
  1655 
  1700   _TYPES = (
  1656   _TYPES = _BuildTagLookupTable({
  1701    ProtocolBuffer.Encoder.NUMERIC,
  1657     0: ProtocolBuffer.Encoder.NUMERIC,
  1702    ProtocolBuffer.Encoder.STRING,
  1658     1: ProtocolBuffer.Encoder.STRING,
  1703 
  1659     2: ProtocolBuffer.Encoder.STRING,
  1704    ProtocolBuffer.Encoder.STRING,
  1660     3: ProtocolBuffer.Encoder.STRING,
  1705 
  1661     4: ProtocolBuffer.Encoder.NUMERIC,
  1706    ProtocolBuffer.Encoder.STRING,
  1662     5: ProtocolBuffer.Encoder.STRING,
  1707 
  1663   }, 5, ProtocolBuffer.Encoder.MAX_TYPE)
  1708    ProtocolBuffer.Encoder.NUMERIC,
       
  1709 
       
  1710    ProtocolBuffer.Encoder.STRING,
       
  1711 
       
  1712   )
       
  1713 
  1664 
  1714   _STYLE = """"""
  1665   _STYLE = """"""
  1715   _STYLE_CONTENT_TYPE = """"""
  1666   _STYLE_CONTENT_TYPE = """"""
  1716 class EntityProto(ProtocolBuffer.ProtocolMessage):
  1667 class EntityProto(ProtocolBuffer.ProtocolMessage):
  1717 
  1668 
  2010       res+=e.__str__(prefix + "  ", printElemNumber)
  1961       res+=e.__str__(prefix + "  ", printElemNumber)
  2011       res+=prefix+">\n"
  1962       res+=prefix+">\n"
  2012       cnt+=1
  1963       cnt+=1
  2013     return res
  1964     return res
  2014 
  1965 
       
  1966 
       
  1967   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  1968     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  1969 
  2015   kkey = 13
  1970   kkey = 13
  2016   kentity_group = 16
  1971   kentity_group = 16
  2017   kowner = 17
  1972   kowner = 17
  2018   kkind = 4
  1973   kkind = 4
  2019   kkind_uri = 5
  1974   kkind_uri = 5
  2020   kproperty = 14
  1975   kproperty = 14
  2021   kraw_property = 15
  1976   kraw_property = 15
  2022 
  1977 
  2023   _TEXT = (
  1978   _TEXT = _BuildTagLookupTable({
  2024    "ErrorCode",
  1979     0: "ErrorCode",
  2025    None,
  1980     4: "kind",
  2026    None,
  1981     5: "kind_uri",
  2027    None,
  1982     13: "key",
  2028    "kind",
  1983     14: "property",
  2029    "kind_uri",
  1984     15: "raw_property",
  2030    None,
  1985     16: "entity_group",
  2031    None,
  1986     17: "owner",
  2032    None,
  1987   }, 17)
  2033    None,
  1988 
  2034    None,
  1989   _TYPES = _BuildTagLookupTable({
  2035    None,
  1990     0: ProtocolBuffer.Encoder.NUMERIC,
  2036    None,
  1991     4: ProtocolBuffer.Encoder.NUMERIC,
  2037    "key",
  1992     5: ProtocolBuffer.Encoder.STRING,
  2038    "property",
  1993     13: ProtocolBuffer.Encoder.STRING,
  2039    "raw_property",
  1994     14: ProtocolBuffer.Encoder.STRING,
  2040    "entity_group",
  1995     15: ProtocolBuffer.Encoder.STRING,
  2041    "owner",
  1996     16: ProtocolBuffer.Encoder.STRING,
  2042   )
  1997     17: ProtocolBuffer.Encoder.STRING,
  2043 
  1998   }, 17, ProtocolBuffer.Encoder.MAX_TYPE)
  2044   _TYPES = (
       
  2045    ProtocolBuffer.Encoder.NUMERIC,
       
  2046    ProtocolBuffer.Encoder.MAX_TYPE,
       
  2047 
       
  2048    ProtocolBuffer.Encoder.MAX_TYPE,
       
  2049 
       
  2050    ProtocolBuffer.Encoder.MAX_TYPE,
       
  2051 
       
  2052    ProtocolBuffer.Encoder.NUMERIC,
       
  2053 
       
  2054    ProtocolBuffer.Encoder.STRING,
       
  2055 
       
  2056    ProtocolBuffer.Encoder.MAX_TYPE,
       
  2057 
       
  2058    ProtocolBuffer.Encoder.MAX_TYPE,
       
  2059 
       
  2060    ProtocolBuffer.Encoder.MAX_TYPE,
       
  2061 
       
  2062    ProtocolBuffer.Encoder.MAX_TYPE,
       
  2063 
       
  2064    ProtocolBuffer.Encoder.MAX_TYPE,
       
  2065 
       
  2066    ProtocolBuffer.Encoder.MAX_TYPE,
       
  2067 
       
  2068    ProtocolBuffer.Encoder.MAX_TYPE,
       
  2069 
       
  2070    ProtocolBuffer.Encoder.STRING,
       
  2071 
       
  2072    ProtocolBuffer.Encoder.STRING,
       
  2073 
       
  2074    ProtocolBuffer.Encoder.STRING,
       
  2075 
       
  2076    ProtocolBuffer.Encoder.STRING,
       
  2077 
       
  2078    ProtocolBuffer.Encoder.STRING,
       
  2079 
       
  2080   )
       
  2081 
  1999 
  2082   _STYLE = """"""
  2000   _STYLE = """"""
  2083   _STYLE_CONTENT_TYPE = """"""
  2001   _STYLE_CONTENT_TYPE = """"""
  2084 class CompositeProperty(ProtocolBuffer.ProtocolMessage):
  2002 class CompositeProperty(ProtocolBuffer.ProtocolMessage):
  2085   has_index_id_ = 0
  2003   has_index_id_ = 0
  2180       if printElemNumber: elm="(%d)" % cnt
  2098       if printElemNumber: elm="(%d)" % cnt
  2181       res+=prefix+("value%s: %s\n" % (elm, self.DebugFormatString(e)))
  2099       res+=prefix+("value%s: %s\n" % (elm, self.DebugFormatString(e)))
  2182       cnt+=1
  2100       cnt+=1
  2183     return res
  2101     return res
  2184 
  2102 
       
  2103 
       
  2104   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  2105     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  2106 
  2185   kindex_id = 1
  2107   kindex_id = 1
  2186   kvalue = 2
  2108   kvalue = 2
  2187 
  2109 
  2188   _TEXT = (
  2110   _TEXT = _BuildTagLookupTable({
  2189    "ErrorCode",
  2111     0: "ErrorCode",
  2190    "index_id",
  2112     1: "index_id",
  2191    "value",
  2113     2: "value",
  2192   )
  2114   }, 2)
  2193 
  2115 
  2194   _TYPES = (
  2116   _TYPES = _BuildTagLookupTable({
  2195    ProtocolBuffer.Encoder.NUMERIC,
  2117     0: ProtocolBuffer.Encoder.NUMERIC,
  2196    ProtocolBuffer.Encoder.NUMERIC,
  2118     1: ProtocolBuffer.Encoder.NUMERIC,
  2197 
  2119     2: ProtocolBuffer.Encoder.STRING,
  2198    ProtocolBuffer.Encoder.STRING,
  2120   }, 2, ProtocolBuffer.Encoder.MAX_TYPE)
  2199 
       
  2200   )
       
  2201 
  2121 
  2202   _STYLE = """"""
  2122   _STYLE = """"""
  2203   _STYLE_CONTENT_TYPE = """"""
  2123   _STYLE_CONTENT_TYPE = """"""
  2204 class Index_Property(ProtocolBuffer.ProtocolMessage):
  2124 class Index_Property(ProtocolBuffer.ProtocolMessage):
  2205 
  2125 
  2441       res+=e.__str__(prefix + "  ", printElemNumber)
  2361       res+=e.__str__(prefix + "  ", printElemNumber)
  2442       res+=prefix+"}\n"
  2362       res+=prefix+"}\n"
  2443       cnt+=1
  2363       cnt+=1
  2444     return res
  2364     return res
  2445 
  2365 
       
  2366 
       
  2367   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  2368     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  2369 
  2446   kentity_type = 1
  2370   kentity_type = 1
  2447   kancestor = 5
  2371   kancestor = 5
  2448   kPropertyGroup = 2
  2372   kPropertyGroup = 2
  2449   kPropertyname = 3
  2373   kPropertyname = 3
  2450   kPropertydirection = 4
  2374   kPropertydirection = 4
  2451 
  2375 
  2452   _TEXT = (
  2376   _TEXT = _BuildTagLookupTable({
  2453    "ErrorCode",
  2377     0: "ErrorCode",
  2454    "entity_type",
  2378     1: "entity_type",
  2455    "Property",
  2379     2: "Property",
  2456    "name",
  2380     3: "name",
  2457    "direction",
  2381     4: "direction",
  2458    "ancestor",
  2382     5: "ancestor",
  2459   )
  2383   }, 5)
  2460 
  2384 
  2461   _TYPES = (
  2385   _TYPES = _BuildTagLookupTable({
  2462    ProtocolBuffer.Encoder.NUMERIC,
  2386     0: ProtocolBuffer.Encoder.NUMERIC,
  2463    ProtocolBuffer.Encoder.STRING,
  2387     1: ProtocolBuffer.Encoder.STRING,
  2464 
  2388     2: ProtocolBuffer.Encoder.STARTGROUP,
  2465    ProtocolBuffer.Encoder.STARTGROUP,
  2389     3: ProtocolBuffer.Encoder.STRING,
  2466 
  2390     4: ProtocolBuffer.Encoder.NUMERIC,
  2467    ProtocolBuffer.Encoder.STRING,
  2391     5: ProtocolBuffer.Encoder.NUMERIC,
  2468 
  2392   }, 5, ProtocolBuffer.Encoder.MAX_TYPE)
  2469    ProtocolBuffer.Encoder.NUMERIC,
       
  2470 
       
  2471    ProtocolBuffer.Encoder.NUMERIC,
       
  2472 
       
  2473   )
       
  2474 
  2393 
  2475   _STYLE = """"""
  2394   _STYLE = """"""
  2476   _STYLE_CONTENT_TYPE = """"""
  2395   _STYLE_CONTENT_TYPE = """"""
  2477 class CompositeIndex(ProtocolBuffer.ProtocolMessage):
  2396 class CompositeIndex(ProtocolBuffer.ProtocolMessage):
  2478 
  2397 
  2647       res+=self.definition_.__str__(prefix + "  ", printElemNumber)
  2566       res+=self.definition_.__str__(prefix + "  ", printElemNumber)
  2648       res+=prefix+">\n"
  2567       res+=prefix+">\n"
  2649     if self.has_state_: res+=prefix+("state: %s\n" % self.DebugFormatInt32(self.state_))
  2568     if self.has_state_: res+=prefix+("state: %s\n" % self.DebugFormatInt32(self.state_))
  2650     return res
  2569     return res
  2651 
  2570 
       
  2571 
       
  2572   def _BuildTagLookupTable(sparse, maxtag, default=None):
       
  2573     return tuple([sparse.get(i, default) for i in xrange(0, 1+maxtag)])
       
  2574 
  2652   kapp_id = 1
  2575   kapp_id = 1
  2653   kid = 2
  2576   kid = 2
  2654   kdefinition = 3
  2577   kdefinition = 3
  2655   kstate = 4
  2578   kstate = 4
  2656 
  2579 
  2657   _TEXT = (
  2580   _TEXT = _BuildTagLookupTable({
  2658    "ErrorCode",
  2581     0: "ErrorCode",
  2659    "app_id",
  2582     1: "app_id",
  2660    "id",
  2583     2: "id",
  2661    "definition",
  2584     3: "definition",
  2662    "state",
  2585     4: "state",
  2663   )
  2586   }, 4)
  2664 
  2587 
  2665   _TYPES = (
  2588   _TYPES = _BuildTagLookupTable({
  2666    ProtocolBuffer.Encoder.NUMERIC,
  2589     0: ProtocolBuffer.Encoder.NUMERIC,
  2667    ProtocolBuffer.Encoder.STRING,
  2590     1: ProtocolBuffer.Encoder.STRING,
  2668 
  2591     2: ProtocolBuffer.Encoder.NUMERIC,
  2669    ProtocolBuffer.Encoder.NUMERIC,
  2592     3: ProtocolBuffer.Encoder.STRING,
  2670 
  2593     4: ProtocolBuffer.Encoder.NUMERIC,
  2671    ProtocolBuffer.Encoder.STRING,
  2594   }, 4, ProtocolBuffer.Encoder.MAX_TYPE)
  2672 
       
  2673    ProtocolBuffer.Encoder.NUMERIC,
       
  2674 
       
  2675   )
       
  2676 
  2595 
  2677   _STYLE = """"""
  2596   _STYLE = """"""
  2678   _STYLE_CONTENT_TYPE = """"""
  2597   _STYLE_CONTENT_TYPE = """"""
  2679 
  2598 
  2680 __all__ = ['PropertyValue','PropertyValue_ReferenceValuePathElement','PropertyValue_PointValue','PropertyValue_UserValue','PropertyValue_ReferenceValue','Property','Path','Path_Element','Reference','User','EntityProto','CompositeProperty','Index','Index_Property','CompositeIndex']
  2599 __all__ = ['PropertyValue','PropertyValue_ReferenceValuePathElement','PropertyValue_PointValue','PropertyValue_UserValue','PropertyValue_ReferenceValue','Property','Path','Path_Element','Reference','User','EntityProto','CompositeProperty','Index','Index_Property','CompositeIndex']