Esempio n. 1
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.I32:
         self.errorCode = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.message = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I32:
         self.rateLimitDuration = iprot.readI32();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Esempio n. 2
0
 def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(
             iprot.trans, TTransport.CReadableTransport
     ) and self.thrift_spec is not None and fastbinary is not None:
         fastbinary.decode_binary(self, iprot.trans,
                                  (self.__class__, self.thrift_spec))
         return
     iprot.readStructBegin()
     while True:
         (fname, ftype, fid) = iprot.readFieldBegin()
         if ftype == TType.STOP:
             break
         if fid == 1:
             if ftype == TType.I32:
                 self.errorCode = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.message = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.I32:
                 self.rateLimitDuration = iprot.readI32()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Esempio n. 3
0
 def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(
             iprot.trans, TTransport.CReadableTransport
     ) and self.thrift_spec is not None and fastbinary is not None:
         fastbinary.decode_binary(self, iprot.trans,
                                  (self.__class__, self.thrift_spec))
         return
     iprot.readStructBegin()
     while True:
         (fname, ftype, fid) = iprot.readFieldBegin()
         if ftype == TType.STOP:
             break
         if fid == 1:
             if ftype == TType.STRING:
                 self.name = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRUCT:
                 self.settings = BootstrapSettings()
                 self.settings.read(iprot)
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Esempio n. 4
0
 def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(
             iprot.trans, TTransport.CReadableTransport
     ) and self.thrift_spec is not None and fastbinary is not None:
         fastbinary.decode_binary(self, iprot.trans,
                                  (self.__class__, self.thrift_spec))
         return
     iprot.readStructBegin()
     while True:
         (fname, ftype, fid) = iprot.readFieldBegin()
         if ftype == TType.STOP:
             break
         if fid == 1:
             if ftype == TType.LIST:
                 self.profiles = []
                 (_etype3, _size0) = iprot.readListBegin()
                 for _i4 in xrange(_size0):
                     _elem5 = BootstrapProfile()
                     _elem5.read(iprot)
                     self.profiles.append(_elem5)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Esempio n. 5
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.I64:
         self.currentTime = iprot.readI64();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.authenticationToken = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I64:
         self.expiration = iprot.readI64();
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.STRUCT:
         self.user = evernote.edam.type.ttypes.User()
         self.user.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 5:
       if ftype == TType.STRUCT:
         self.publicUserInfo = PublicUserInfo()
         self.publicUserInfo.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 6:
       if ftype == TType.STRING:
         self.noteStoreUrl = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 7:
       if ftype == TType.STRING:
         self.webApiUrlPrefix = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 8:
       if ftype == TType.BOOL:
         self.secondFactorRequired = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 9:
       if ftype == TType.STRING:
         self.secondFactorDeliveryHint = iprot.readString();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Esempio n. 6
0
 def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(
             iprot.trans, TTransport.CReadableTransport
     ) and self.thrift_spec is not None and fastbinary is not None:
         fastbinary.decode_binary(self, iprot.trans,
                                  (self.__class__, self.thrift_spec))
         return
     iprot.readStructBegin()
     while True:
         (fname, ftype, fid) = iprot.readFieldBegin()
         if ftype == TType.STOP:
             break
         if fid == 1:
             if ftype == TType.I32:
                 self.userId = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.shardId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.I32:
                 self.privilege = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.STRING:
                 self.username = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRING:
                 self.noteStoreUrl = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.webApiUrlPrefix = iprot.readString()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Esempio n. 7
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.I32:
         self.userId = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.shardId = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I32:
         self.privilege = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.STRING:
         self.username = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 5:
       if ftype == TType.STRING:
         self.noteStoreUrl = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 6:
       if ftype == TType.STRING:
         self.webApiUrlPrefix = iprot.readString();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Esempio n. 8
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.LIST:
         self.profiles = []
         (_etype3, _size0) = iprot.readListBegin()
         for _i4 in xrange(_size0):
           _elem5 = BootstrapProfile()
           _elem5.read(iprot)
           self.profiles.append(_elem5)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Esempio n. 9
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.STRING:
         self.name = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRUCT:
         self.settings = BootstrapSettings()
         self.settings.read(iprot)
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Esempio n. 10
0
 def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(
             iprot.trans, TTransport.CReadableTransport
     ) and self.thrift_spec is not None and fastbinary is not None:
         fastbinary.decode_binary(self, iprot.trans,
                                  (self.__class__, self.thrift_spec))
         return
     iprot.readStructBegin()
     while True:
         (fname, ftype, fid) = iprot.readFieldBegin()
         if ftype == TType.STOP:
             break
         if fid == 1:
             if ftype == TType.STRING:
                 self.serviceHost = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.marketingUrl = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.supportUrl = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.STRING:
                 self.accountEmailDomain = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.BOOL:
                 self.enableFacebookSharing = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.BOOL:
                 self.enableGiftSubscriptions = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.BOOL:
                 self.enableSupportTickets = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.BOOL:
                 self.enableSharedNotebooks = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.BOOL:
                 self.enableSingleNoteSharing = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.BOOL:
                 self.enableSponsoredAccounts = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 11:
             if ftype == TType.BOOL:
                 self.enableTwitterSharing = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 12:
             if ftype == TType.BOOL:
                 self.enableLinkedInSharing = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 13:
             if ftype == TType.BOOL:
                 self.enablePublicNotebooks = iprot.readBool()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Esempio n. 11
0
 def read(self, iprot):
     if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(
             iprot.trans, TTransport.CReadableTransport
     ) and self.thrift_spec is not None and fastbinary is not None:
         fastbinary.decode_binary(self, iprot.trans,
                                  (self.__class__, self.thrift_spec))
         return
     iprot.readStructBegin()
     while True:
         (fname, ftype, fid) = iprot.readFieldBegin()
         if ftype == TType.STOP:
             break
         if fid == 1:
             if ftype == TType.I64:
                 self.currentTime = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.authenticationToken = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.I64:
                 self.expiration = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.STRUCT:
                 self.user = evernote.edam.type.ttypes.User()
                 self.user.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRUCT:
                 self.publicUserInfo = PublicUserInfo()
                 self.publicUserInfo.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.noteStoreUrl = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.webApiUrlPrefix = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.BOOL:
                 self.secondFactorRequired = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.STRING:
                 self.secondFactorDeliveryHint = iprot.readString()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Esempio n. 12
0
 def read(self, iprot):
   if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
     fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
     return
   iprot.readStructBegin()
   while True:
     (fname, ftype, fid) = iprot.readFieldBegin()
     if ftype == TType.STOP:
       break
     if fid == 1:
       if ftype == TType.STRING:
         self.serviceHost = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.marketingUrl = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.STRING:
         self.supportUrl = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.STRING:
         self.accountEmailDomain = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 5:
       if ftype == TType.BOOL:
         self.enableFacebookSharing = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 6:
       if ftype == TType.BOOL:
         self.enableGiftSubscriptions = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 7:
       if ftype == TType.BOOL:
         self.enableSupportTickets = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 8:
       if ftype == TType.BOOL:
         self.enableSharedNotebooks = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 9:
       if ftype == TType.BOOL:
         self.enableSingleNoteSharing = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 10:
       if ftype == TType.BOOL:
         self.enableSponsoredAccounts = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 11:
       if ftype == TType.BOOL:
         self.enableTwitterSharing = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 12:
       if ftype == TType.BOOL:
         self.enableLinkedInSharing = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 13:
       if ftype == TType.BOOL:
         self.enablePublicNotebooks = iprot.readBool();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()