thirdparty/google_appengine/google/appengine/api/mail_service_pb.py
changeset 828 f5fd65cc3bf3
parent 149 f2e327a7c5de
child 1278 a7766286a7be
equal deleted inserted replaced
827:88c186556a80 828:f5fd65cc3bf3
    53 
    53 
    54   def Equals(self, x):
    54   def Equals(self, x):
    55     if x is self: return 1
    55     if x is self: return 1
    56     return 1
    56     return 1
    57 
    57 
    58   def __eq__(self, other):
       
    59     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
    60 
       
    61   def __ne__(self, other):
       
    62     return not (self == other)
       
    63 
       
    64   def IsInitialized(self, debug_strs=None):
    58   def IsInitialized(self, debug_strs=None):
    65     initialized = 1
    59     initialized = 1
    66     return initialized
    60     return initialized
    67 
    61 
    68   def ByteSize(self):
    62   def ByteSize(self):
   141     if self.has_filename_ != x.has_filename_: return 0
   135     if self.has_filename_ != x.has_filename_: return 0
   142     if self.has_filename_ and self.filename_ != x.filename_: return 0
   136     if self.has_filename_ and self.filename_ != x.filename_: return 0
   143     if self.has_data_ != x.has_data_: return 0
   137     if self.has_data_ != x.has_data_: return 0
   144     if self.has_data_ and self.data_ != x.data_: return 0
   138     if self.has_data_ and self.data_ != x.data_: return 0
   145     return 1
   139     return 1
   146 
       
   147   def __eq__(self, other):
       
   148     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
   149 
       
   150   def __ne__(self, other):
       
   151     return not (self == other)
       
   152 
   140 
   153   def IsInitialized(self, debug_strs=None):
   141   def IsInitialized(self, debug_strs=None):
   154     initialized = 1
   142     initialized = 1
   155     if (not self.has_filename_):
   143     if (not self.has_filename_):
   156       initialized = 0
   144       initialized = 0
   392     if self.has_htmlbody_ and self.htmlbody_ != x.htmlbody_: return 0
   380     if self.has_htmlbody_ and self.htmlbody_ != x.htmlbody_: return 0
   393     if len(self.attachment_) != len(x.attachment_): return 0
   381     if len(self.attachment_) != len(x.attachment_): return 0
   394     for e1, e2 in zip(self.attachment_, x.attachment_):
   382     for e1, e2 in zip(self.attachment_, x.attachment_):
   395       if e1 != e2: return 0
   383       if e1 != e2: return 0
   396     return 1
   384     return 1
   397 
       
   398   def __eq__(self, other):
       
   399     return (other is not None) and (other.__class__ == self.__class__) and self.Equals(other)
       
   400 
       
   401   def __ne__(self, other):
       
   402     return not (self == other)
       
   403 
   385 
   404   def IsInitialized(self, debug_strs=None):
   386   def IsInitialized(self, debug_strs=None):
   405     initialized = 1
   387     initialized = 1
   406     if (not self.has_sender_):
   388     if (not self.has_sender_):
   407       initialized = 0
   389       initialized = 0