thirdparty/google_appengine/google/appengine/api/mail_service_pb.py
changeset 149 f2e327a7c5de
parent 109 620f9b141567
child 828 f5fd65cc3bf3
equal deleted inserted replaced
148:37505d64e57b 149:f2e327a7c5de
    40   }
    40   }
    41 
    41 
    42   def ErrorCode_Name(cls, x): return cls._ErrorCode_NAMES.get(x, "")
    42   def ErrorCode_Name(cls, x): return cls._ErrorCode_NAMES.get(x, "")
    43   ErrorCode_Name = classmethod(ErrorCode_Name)
    43   ErrorCode_Name = classmethod(ErrorCode_Name)
    44 
    44 
       
    45 
    45   def __init__(self, contents=None):
    46   def __init__(self, contents=None):
    46     pass
    47     pass
    47     if contents is not None: self.MergeFromString(contents)
    48     if contents is not None: self.MergeFromString(contents)
    48 
    49 
    49 
    50 
    95   )
    96   )
    96 
    97 
    97   _STYLE = """"""
    98   _STYLE = """"""
    98   _STYLE_CONTENT_TYPE = """"""
    99   _STYLE_CONTENT_TYPE = """"""
    99 class MailAttachment(ProtocolBuffer.ProtocolMessage):
   100 class MailAttachment(ProtocolBuffer.ProtocolMessage):
       
   101   has_filename_ = 0
       
   102   filename_ = ""
       
   103   has_data_ = 0
       
   104   data_ = ""
       
   105 
   100   def __init__(self, contents=None):
   106   def __init__(self, contents=None):
   101     self.filename_ = ""
       
   102     self.data_ = ""
       
   103     self.has_filename_ = 0
       
   104     self.has_data_ = 0
       
   105     if contents is not None: self.MergeFromString(contents)
   107     if contents is not None: self.MergeFromString(contents)
   106 
   108 
   107   def filename(self): return self.filename_
   109   def filename(self): return self.filename_
   108 
   110 
   109   def set_filename(self, x):
   111   def set_filename(self, x):
   213   )
   215   )
   214 
   216 
   215   _STYLE = """"""
   217   _STYLE = """"""
   216   _STYLE_CONTENT_TYPE = """"""
   218   _STYLE_CONTENT_TYPE = """"""
   217 class MailMessage(ProtocolBuffer.ProtocolMessage):
   219 class MailMessage(ProtocolBuffer.ProtocolMessage):
       
   220   has_sender_ = 0
       
   221   sender_ = ""
       
   222   has_replyto_ = 0
       
   223   replyto_ = ""
       
   224   has_subject_ = 0
       
   225   subject_ = ""
       
   226   has_textbody_ = 0
       
   227   textbody_ = ""
       
   228   has_htmlbody_ = 0
       
   229   htmlbody_ = ""
       
   230 
   218   def __init__(self, contents=None):
   231   def __init__(self, contents=None):
   219     self.sender_ = ""
       
   220     self.replyto_ = ""
       
   221     self.to_ = []
   232     self.to_ = []
   222     self.cc_ = []
   233     self.cc_ = []
   223     self.bcc_ = []
   234     self.bcc_ = []
   224     self.subject_ = ""
       
   225     self.textbody_ = ""
       
   226     self.htmlbody_ = ""
       
   227     self.attachment_ = []
   235     self.attachment_ = []
   228     self.has_sender_ = 0
       
   229     self.has_replyto_ = 0
       
   230     self.has_subject_ = 0
       
   231     self.has_textbody_ = 0
       
   232     self.has_htmlbody_ = 0
       
   233     if contents is not None: self.MergeFromString(contents)
   236     if contents is not None: self.MergeFromString(contents)
   234 
   237 
   235   def sender(self): return self.sender_
   238   def sender(self): return self.sender_
   236 
   239 
   237   def set_sender(self, x):
   240   def set_sender(self, x):
   406         debug_strs.append('Required field: sender not set.')
   409         debug_strs.append('Required field: sender not set.')
   407     if (not self.has_subject_):
   410     if (not self.has_subject_):
   408       initialized = 0
   411       initialized = 0
   409       if debug_strs is not None:
   412       if debug_strs is not None:
   410         debug_strs.append('Required field: subject not set.')
   413         debug_strs.append('Required field: subject not set.')
   411     for i in xrange(len(self.attachment_)):
   414     for p in self.attachment_:
   412       if (not self.attachment_[i].IsInitialized(debug_strs)): initialized=0
   415       if not p.IsInitialized(debug_strs): initialized=0
   413     return initialized
   416     return initialized
   414 
   417 
   415   def ByteSize(self):
   418   def ByteSize(self):
   416     n = 0
   419     n = 0
   417     n += self.lengthString(len(self.sender_))
   420     n += self.lengthString(len(self.sender_))