thirdparty/google_appengine/google/appengine/datastore/entity_pb.py
changeset 828 f5fd65cc3bf3
parent 149 f2e327a7c5de
child 1278 a7766286a7be
equal deleted inserted replaced
827:88c186556a80 828:f5fd65cc3bf3
    84     if self.has_id_ and self.id_ != x.id_: return 0
    84     if self.has_id_ and self.id_ != x.id_: return 0
    85     if self.has_name_ != x.has_name_: return 0
    85     if self.has_name_ != x.has_name_: return 0
    86     if self.has_name_ and self.name_ != x.name_: return 0
    86     if self.has_name_ and self.name_ != x.name_: return 0
    87     return 1
    87     return 1
    88 
    88 
    89   def __eq__(self, other):
       
    90     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
    91 
       
    92   def __ne__(self, other):
       
    93     return not (self == other)
       
    94 
       
    95   def IsInitialized(self, debug_strs=None):
    89   def IsInitialized(self, debug_strs=None):
    96     initialized = 1
    90     initialized = 1
    97     if (not self.has_type_):
    91     if (not self.has_type_):
    98       initialized = 0
    92       initialized = 0
    99       if debug_strs is not None:
    93       if debug_strs is not None:
   190     if self.has_x_ != x.has_x_: return 0
   184     if self.has_x_ != x.has_x_: return 0
   191     if self.has_x_ and self.x_ != x.x_: return 0
   185     if self.has_x_ and self.x_ != x.x_: return 0
   192     if self.has_y_ != x.has_y_: return 0
   186     if self.has_y_ != x.has_y_: return 0
   193     if self.has_y_ and self.y_ != x.y_: return 0
   187     if self.has_y_ and self.y_ != x.y_: return 0
   194     return 1
   188     return 1
   195 
       
   196   def __eq__(self, other):
       
   197     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
   198 
       
   199   def __ne__(self, other):
       
   200     return not (self == other)
       
   201 
   189 
   202   def IsInitialized(self, debug_strs=None):
   190   def IsInitialized(self, debug_strs=None):
   203     initialized = 1
   191     initialized = 1
   204     if (not self.has_x_):
   192     if (not self.has_x_):
   205       initialized = 0
   193       initialized = 0
   323     if self.has_nickname_ != x.has_nickname_: return 0
   311     if self.has_nickname_ != x.has_nickname_: return 0
   324     if self.has_nickname_ and self.nickname_ != x.nickname_: return 0
   312     if self.has_nickname_ and self.nickname_ != x.nickname_: return 0
   325     if self.has_gaiaid_ != x.has_gaiaid_: return 0
   313     if self.has_gaiaid_ != x.has_gaiaid_: return 0
   326     if self.has_gaiaid_ and self.gaiaid_ != x.gaiaid_: return 0
   314     if self.has_gaiaid_ and self.gaiaid_ != x.gaiaid_: return 0
   327     return 1
   315     return 1
   328 
       
   329   def __eq__(self, other):
       
   330     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
   331 
       
   332   def __ne__(self, other):
       
   333     return not (self == other)
       
   334 
   316 
   335   def IsInitialized(self, debug_strs=None):
   317   def IsInitialized(self, debug_strs=None):
   336     initialized = 1
   318     initialized = 1
   337     if (not self.has_email_):
   319     if (not self.has_email_):
   338       initialized = 0
   320       initialized = 0
   449     if self.has_app_ and self.app_ != x.app_: return 0
   431     if self.has_app_ and self.app_ != x.app_: return 0
   450     if len(self.pathelement_) != len(x.pathelement_): return 0
   432     if len(self.pathelement_) != len(x.pathelement_): return 0
   451     for e1, e2 in zip(self.pathelement_, x.pathelement_):
   433     for e1, e2 in zip(self.pathelement_, x.pathelement_):
   452       if e1 != e2: return 0
   434       if e1 != e2: return 0
   453     return 1
   435     return 1
   454 
       
   455   def __eq__(self, other):
       
   456     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
   457 
       
   458   def __ne__(self, other):
       
   459     return not (self == other)
       
   460 
   436 
   461   def IsInitialized(self, debug_strs=None):
   437   def IsInitialized(self, debug_strs=None):
   462     initialized = 1
   438     initialized = 1
   463     if (not self.has_app_):
   439     if (not self.has_app_):
   464       initialized = 0
   440       initialized = 0
   659     if self.has_uservalue_ != x.has_uservalue_: return 0
   635     if self.has_uservalue_ != x.has_uservalue_: return 0
   660     if self.has_uservalue_ and self.uservalue_ != x.uservalue_: return 0
   636     if self.has_uservalue_ and self.uservalue_ != x.uservalue_: return 0
   661     if self.has_referencevalue_ != x.has_referencevalue_: return 0
   637     if self.has_referencevalue_ != x.has_referencevalue_: return 0
   662     if self.has_referencevalue_ and self.referencevalue_ != x.referencevalue_: return 0
   638     if self.has_referencevalue_ and self.referencevalue_ != x.referencevalue_: return 0
   663     return 1
   639     return 1
   664 
       
   665   def __eq__(self, other):
       
   666     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
   667 
       
   668   def __ne__(self, other):
       
   669     return not (self == other)
       
   670 
   640 
   671   def IsInitialized(self, debug_strs=None):
   641   def IsInitialized(self, debug_strs=None):
   672     initialized = 1
   642     initialized = 1
   673     if (self.has_pointvalue_ and not self.pointvalue_.IsInitialized(debug_strs)): initialized = 0
   643     if (self.has_pointvalue_ and not self.pointvalue_.IsInitialized(debug_strs)): initialized = 0
   674     if (self.has_uservalue_ and not self.uservalue_.IsInitialized(debug_strs)): initialized = 0
   644     if (self.has_uservalue_ and not self.uservalue_.IsInitialized(debug_strs)): initialized = 0
   854   _STYLE_CONTENT_TYPE = """"""
   824   _STYLE_CONTENT_TYPE = """"""
   855 class Property(ProtocolBuffer.ProtocolMessage):
   825 class Property(ProtocolBuffer.ProtocolMessage):
   856 
   826 
   857   BLOB         =   14
   827   BLOB         =   14
   858   TEXT         =   15
   828   TEXT         =   15
       
   829   BYTESTRING   =   16
   859   ATOM_CATEGORY =    1
   830   ATOM_CATEGORY =    1
   860   ATOM_LINK    =    2
   831   ATOM_LINK    =    2
   861   ATOM_TITLE   =    3
   832   ATOM_TITLE   =    3
   862   ATOM_CONTENT =    4
   833   ATOM_CONTENT =    4
   863   ATOM_SUMMARY =    5
   834   ATOM_SUMMARY =    5
   871   GD_RATING    =   13
   842   GD_RATING    =   13
   872 
   843 
   873   _Meaning_NAMES = {
   844   _Meaning_NAMES = {
   874     14: "BLOB",
   845     14: "BLOB",
   875     15: "TEXT",
   846     15: "TEXT",
       
   847     16: "BYTESTRING",
   876     1: "ATOM_CATEGORY",
   848     1: "ATOM_CATEGORY",
   877     2: "ATOM_LINK",
   849     2: "ATOM_LINK",
   878     3: "ATOM_TITLE",
   850     3: "ATOM_TITLE",
   879     4: "ATOM_CONTENT",
   851     4: "ATOM_CONTENT",
   880     5: "ATOM_SUMMARY",
   852     5: "ATOM_SUMMARY",
   981     if self.has_value_ != x.has_value_: return 0
   953     if self.has_value_ != x.has_value_: return 0
   982     if self.has_value_ and self.value_ != x.value_: return 0
   954     if self.has_value_ and self.value_ != x.value_: return 0
   983     if self.has_multiple_ != x.has_multiple_: return 0
   955     if self.has_multiple_ != x.has_multiple_: return 0
   984     if self.has_multiple_ and self.multiple_ != x.multiple_: return 0
   956     if self.has_multiple_ and self.multiple_ != x.multiple_: return 0
   985     return 1
   957     return 1
   986 
       
   987   def __eq__(self, other):
       
   988     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
   989 
       
   990   def __ne__(self, other):
       
   991     return not (self == other)
       
   992 
   958 
   993   def IsInitialized(self, debug_strs=None):
   959   def IsInitialized(self, debug_strs=None):
   994     initialized = 1
   960     initialized = 1
   995     if (not self.has_name_):
   961     if (not self.has_name_):
   996       initialized = 0
   962       initialized = 0
  1165     if self.has_id_ and self.id_ != x.id_: return 0
  1131     if self.has_id_ and self.id_ != x.id_: return 0
  1166     if self.has_name_ != x.has_name_: return 0
  1132     if self.has_name_ != x.has_name_: return 0
  1167     if self.has_name_ and self.name_ != x.name_: return 0
  1133     if self.has_name_ and self.name_ != x.name_: return 0
  1168     return 1
  1134     return 1
  1169 
  1135 
  1170   def __eq__(self, other):
       
  1171     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
  1172 
       
  1173   def __ne__(self, other):
       
  1174     return not (self == other)
       
  1175 
       
  1176   def IsInitialized(self, debug_strs=None):
  1136   def IsInitialized(self, debug_strs=None):
  1177     initialized = 1
  1137     initialized = 1
  1178     if (not self.has_type_):
  1138     if (not self.has_type_):
  1179       initialized = 0
  1139       initialized = 0
  1180       if debug_strs is not None:
  1140       if debug_strs is not None:
  1258     if x is self: return 1
  1218     if x is self: return 1
  1259     if len(self.element_) != len(x.element_): return 0
  1219     if len(self.element_) != len(x.element_): return 0
  1260     for e1, e2 in zip(self.element_, x.element_):
  1220     for e1, e2 in zip(self.element_, x.element_):
  1261       if e1 != e2: return 0
  1221       if e1 != e2: return 0
  1262     return 1
  1222     return 1
  1263 
       
  1264   def __eq__(self, other):
       
  1265     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
  1266 
       
  1267   def __ne__(self, other):
       
  1268     return not (self == other)
       
  1269 
  1223 
  1270   def IsInitialized(self, debug_strs=None):
  1224   def IsInitialized(self, debug_strs=None):
  1271     initialized = 1
  1225     initialized = 1
  1272     for p in self.element_:
  1226     for p in self.element_:
  1273       if not p.IsInitialized(debug_strs): initialized=0
  1227       if not p.IsInitialized(debug_strs): initialized=0
  1377     if self.has_app_ != x.has_app_: return 0
  1331     if self.has_app_ != x.has_app_: return 0
  1378     if self.has_app_ and self.app_ != x.app_: return 0
  1332     if self.has_app_ and self.app_ != x.app_: return 0
  1379     if self.has_path_ != x.has_path_: return 0
  1333     if self.has_path_ != x.has_path_: return 0
  1380     if self.has_path_ and self.path_ != x.path_: return 0
  1334     if self.has_path_ and self.path_ != x.path_: return 0
  1381     return 1
  1335     return 1
  1382 
       
  1383   def __eq__(self, other):
       
  1384     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
  1385 
       
  1386   def __ne__(self, other):
       
  1387     return not (self == other)
       
  1388 
  1336 
  1389   def IsInitialized(self, debug_strs=None):
  1337   def IsInitialized(self, debug_strs=None):
  1390     initialized = 1
  1338     initialized = 1
  1391     if (not self.has_app_):
  1339     if (not self.has_app_):
  1392       initialized = 0
  1340       initialized = 0
  1574     if self.has_nickname_ != x.has_nickname_: return 0
  1522     if self.has_nickname_ != x.has_nickname_: return 0
  1575     if self.has_nickname_ and self.nickname_ != x.nickname_: return 0
  1523     if self.has_nickname_ and self.nickname_ != x.nickname_: return 0
  1576     if self.has_gaiaid_ != x.has_gaiaid_: return 0
  1524     if self.has_gaiaid_ != x.has_gaiaid_: return 0
  1577     if self.has_gaiaid_ and self.gaiaid_ != x.gaiaid_: return 0
  1525     if self.has_gaiaid_ and self.gaiaid_ != x.gaiaid_: return 0
  1578     return 1
  1526     return 1
  1579 
       
  1580   def __eq__(self, other):
       
  1581     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
  1582 
       
  1583   def __ne__(self, other):
       
  1584     return not (self == other)
       
  1585 
  1527 
  1586   def IsInitialized(self, debug_strs=None):
  1528   def IsInitialized(self, debug_strs=None):
  1587     initialized = 1
  1529     initialized = 1
  1588     if (not self.has_email_):
  1530     if (not self.has_email_):
  1589       initialized = 0
  1531       initialized = 0
  1827       if e1 != e2: return 0
  1769       if e1 != e2: return 0
  1828     if len(self.raw_property_) != len(x.raw_property_): return 0
  1770     if len(self.raw_property_) != len(x.raw_property_): return 0
  1829     for e1, e2 in zip(self.raw_property_, x.raw_property_):
  1771     for e1, e2 in zip(self.raw_property_, x.raw_property_):
  1830       if e1 != e2: return 0
  1772       if e1 != e2: return 0
  1831     return 1
  1773     return 1
  1832 
       
  1833   def __eq__(self, other):
       
  1834     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
  1835 
       
  1836   def __ne__(self, other):
       
  1837     return not (self == other)
       
  1838 
  1774 
  1839   def IsInitialized(self, debug_strs=None):
  1775   def IsInitialized(self, debug_strs=None):
  1840     initialized = 1
  1776     initialized = 1
  1841     if (not self.has_key_):
  1777     if (not self.has_key_):
  1842       initialized = 0
  1778       initialized = 0
  2097     if len(self.value_) != len(x.value_): return 0
  2033     if len(self.value_) != len(x.value_): return 0
  2098     for e1, e2 in zip(self.value_, x.value_):
  2034     for e1, e2 in zip(self.value_, x.value_):
  2099       if e1 != e2: return 0
  2035       if e1 != e2: return 0
  2100     return 1
  2036     return 1
  2101 
  2037 
  2102   def __eq__(self, other):
       
  2103     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
  2104 
       
  2105   def __ne__(self, other):
       
  2106     return not (self == other)
       
  2107 
       
  2108   def IsInitialized(self, debug_strs=None):
  2038   def IsInitialized(self, debug_strs=None):
  2109     initialized = 1
  2039     initialized = 1
  2110     if (not self.has_index_id_):
  2040     if (not self.has_index_id_):
  2111       initialized = 0
  2041       initialized = 0
  2112       if debug_strs is not None:
  2042       if debug_strs is not None:
  2231     if self.has_name_ and self.name_ != x.name_: return 0
  2161     if self.has_name_ and self.name_ != x.name_: return 0
  2232     if self.has_direction_ != x.has_direction_: return 0
  2162     if self.has_direction_ != x.has_direction_: return 0
  2233     if self.has_direction_ and self.direction_ != x.direction_: return 0
  2163     if self.has_direction_ and self.direction_ != x.direction_: return 0
  2234     return 1
  2164     return 1
  2235 
  2165 
  2236   def __eq__(self, other):
       
  2237     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
  2238 
       
  2239   def __ne__(self, other):
       
  2240     return not (self == other)
       
  2241 
       
  2242   def IsInitialized(self, debug_strs=None):
  2166   def IsInitialized(self, debug_strs=None):
  2243     initialized = 1
  2167     initialized = 1
  2244     if (not self.has_name_):
  2168     if (not self.has_name_):
  2245       initialized = 0
  2169       initialized = 0
  2246       if debug_strs is not None:
  2170       if debug_strs is not None:
  2349     if self.has_ancestor_ and self.ancestor_ != x.ancestor_: return 0
  2273     if self.has_ancestor_ and self.ancestor_ != x.ancestor_: return 0
  2350     if len(self.property_) != len(x.property_): return 0
  2274     if len(self.property_) != len(x.property_): return 0
  2351     for e1, e2 in zip(self.property_, x.property_):
  2275     for e1, e2 in zip(self.property_, x.property_):
  2352       if e1 != e2: return 0
  2276       if e1 != e2: return 0
  2353     return 1
  2277     return 1
  2354 
       
  2355   def __eq__(self, other):
       
  2356     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
  2357 
       
  2358   def __ne__(self, other):
       
  2359     return not (self == other)
       
  2360 
  2278 
  2361   def IsInitialized(self, debug_strs=None):
  2279   def IsInitialized(self, debug_strs=None):
  2362     initialized = 1
  2280     initialized = 1
  2363     if (not self.has_entity_type_):
  2281     if (not self.has_entity_type_):
  2364       initialized = 0
  2282       initialized = 0
  2545     if self.has_definition_ != x.has_definition_: return 0
  2463     if self.has_definition_ != x.has_definition_: return 0
  2546     if self.has_definition_ and self.definition_ != x.definition_: return 0
  2464     if self.has_definition_ and self.definition_ != x.definition_: return 0
  2547     if self.has_state_ != x.has_state_: return 0
  2465     if self.has_state_ != x.has_state_: return 0
  2548     if self.has_state_ and self.state_ != x.state_: return 0
  2466     if self.has_state_ and self.state_ != x.state_: return 0
  2549     return 1
  2467     return 1
  2550 
       
  2551   def __eq__(self, other):
       
  2552     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
  2553 
       
  2554   def __ne__(self, other):
       
  2555     return not (self == other)
       
  2556 
  2468 
  2557   def IsInitialized(self, debug_strs=None):
  2469   def IsInitialized(self, debug_strs=None):
  2558     initialized = 1
  2470     initialized = 1
  2559     if (not self.has_app_id_):
  2471     if (not self.has_app_id_):
  2560       initialized = 0
  2472       initialized = 0