Beispiel #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 == 2:
       if ftype == TType.MAP:
         self.tags = {}
         (_ktype17, _vtype18, _size16 ) = iprot.readMapBegin() 
         for _i20 in xrange(_size16):
           _key21 = iprot.readString();
           _val22 = iprot.readString();
           self.tags[_key21] = _val22
         iprot.readMapEnd()
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.MAP:
         self.metrics = {}
         (_ktype24, _vtype25, _size23 ) = iprot.readMapBegin() 
         for _i27 in xrange(_size23):
           _key28 = iprot.readString();
           _val29 = iprot.readI64();
           self.metrics[_key28] = _val29
         iprot.readMapEnd()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #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.LIST:
                 self.str_list = []
                 (_etype3, _size0) = iprot.readListBegin()
                 for _i4 in xrange(_size0):
                     _elem5 = iprot.readString()
                     self.str_list.append(_elem5)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
 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.nameDictionary = iprot.readString().decode("utf-8")
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.translate = iprot.readString().decode("utf-8")
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.sameTypeSequence = iprot.readString().decode("utf-8")
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
 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.STRUCT:
         self.schema = hive_metastore.ttypes.Schema()
         self.schema.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.table_dir = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.STRING:
         self.in_tablename = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.STRING:
         self.delim = iprot.readString();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #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.STRING:
         self.entity = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.tag = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I32:
         self.startOffset = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.I32:
         self.endOffset = iprot.readI32();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #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 == 0:
       if ftype == TType.STRUCT:
         self.success = queryplan.ttypes.QueryPlan()
         self.success.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 1:
       if ftype == TType.STRUCT:
         self.ex = HiveServerException()
         self.ex.read(iprot)
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #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 == 0:
       if ftype == TType.LIST:
         self.success = []
         (_etype10, _size7) = iprot.readListBegin()
         for _i11 in xrange(_size7):
           _elem12 = iprot.readString();
           self.success.append(_elem12)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     elif fid == 1:
       if ftype == TType.STRUCT:
         self.ex = HiveServerException()
         self.ex.read(iprot)
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #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.queries = []
         (_etype117, _size114) = iprot.readListBegin()
         for _i118 in xrange(_size114):
           _elem119 = Query()
           _elem119.read(iprot)
           self.queries.append(_elem119)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.BOOL:
         self.done = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.BOOL:
         self.started = iprot.readBool();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
 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 == 0:
             if ftype == TType.LIST:
                 self.success = []
                 (_etype24, _size21) = iprot.readListBegin()
                 for _i25 in xrange(_size21):
                     _elem26 = elephantdb.ttypes.Value()
                     _elem26.read(iprot)
                     self.success.append(_elem26)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #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.SET:
         self.sIntString = set()
         (_etype76, _size73) = iprot.readSetBegin()
         for _i77 in xrange(_size73):
           _elem78 = IntString()
           _elem78.read(iprot)
           self.sIntString.add(_elem78)
         iprot.readSetEnd()
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.aString = iprot.readString()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
 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.id = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRUCT:
         self.ystats = Stats()
         self.ystats.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.STRING:
         self.snapshot_filepath = iprot.readString();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #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.versionName = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     elif fid == 10:
       if ftype == TType.STRUCT:
         self.jdForQuery = JdForQuery()
         self.jdForQuery.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 11:
       if ftype == TType.BOOL:
         self.skipPersistence = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 12:
       if ftype == TType.STRING:
         self.contentSign = iprot.readString().decode('utf-8')
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #13
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 == 0:
       if ftype == TType.STRUCT:
         self.success = JdQueryResult()
         self.success.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 1:
       if ftype == TType.STRUCT:
         self.namedError = ipin.rpc.common.ttypes.NamedError()
         self.namedError.read(iprot)
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #14
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 == 0:
             if ftype == TType.STRING:
                 self.success = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 1:
             if ftype == TType.STRUCT:
                 self.err = FileNotFound()
                 self.err.read(iprot)
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #15
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 == 10:
       if ftype == TType.STRUCT:
         self.ctx = hadoop.api.common.ttypes.RequestContext()
         self.ctx.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 1:
       if ftype == TType.STRUCT:
         self.block = Block()
         self.block.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.I64:
         self.offset = iprot.readI64();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I32:
         self.length = iprot.readI32();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #16
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.STRUCT:
         self.settings = TrafficControlSetting()
         self.settings.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRUCT:
         self.device = TrafficControlledDevice()
         self.device.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I32:
         self.timeout = iprot.readI32();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #17
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.delay = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.I32:
         self.jitter = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.DOUBLE:
         self.correlation = iprot.readDouble();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #18
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.dtoList = []
         (_etype38, _size35) = iprot.readListBegin()
         for _i39 in xrange(_size35):
           _elem40 = FavoriteDto()
           _elem40.read(iprot)
           self.dtoList.append(_elem40)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.I32:
         self.totalCount = iprot.readI32();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #19
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.up = []
         (_etype10, _size7) = iprot.readListBegin()
         for _i11 in xrange(_size7):
           _elem12 = Shaping()
           _elem12.read(iprot)
           self.up.append(_elem12)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.LIST:
         self.down = []
         (_etype16, _size13) = iprot.readListBegin()
         for _i17 in xrange(_size13):
           _elem18 = Shaping()
           _elem18.read(iprot)
           self.down.append(_elem18)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #20
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.code = iprot.readI32()
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.reason = iprot.readString()
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.MAP:
         self.parameterMap = {}
         (_ktype912, _vtype913, _size911 ) = iprot.readMapBegin()
         for _i915 in xrange(_size911):
           _key916 = iprot.readString()
           _val917 = iprot.readString()
           self.parameterMap[_key916] = _val917
         iprot.readMapEnd()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #21
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.STRUCT:
         self.pagingRequest = PagingRequest()
         self.pagingRequest.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I32:
         self.type = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.I32:
         self.favUserId = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 5:
       if ftype == TType.STRING:
         self.favWareId = iprot.readString();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
 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 == 4:
       if ftype == TType.STRING:
         self.first = iprot.readString()
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I16:
         self.second = iprot.readI16()
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.I32:
         self.third = iprot.readI32()
       else:
         iprot.skip(ftype)
     elif fid == 1:
       if ftype == TType.I64:
         self.fourth = iprot.readI64()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #23
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.timestamp = iprot.readI64();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.value = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.STRUCT:
         self.host = Endpoint()
         self.host.read(iprot)
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
 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.BOOL:
         self.result = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.MAP:
         self.options = {}
         (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin()
         for _i4 in xrange(_size0):
           _key5 = iprot.readString();
           _val6 = iprot.readString();
           self.options[_key5] = _val6
         iprot.readMapEnd()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
 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.communityId = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.I32:
         self.labelId = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I32:
         self.currentPage = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.I32:
         self.pageSize = iprot.readI32();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #26
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.session_key = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.LIST:
         self.no_list = []
         (_etype80, _size77) = iprot.readListBegin()
         for _i81 in xrange(_size77):
           _elem82 = iprot.readI32();
           self.no_list.append(_elem82)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #27
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.STRUCT:
         self.invalid = InvalidOperation()
         self.invalid.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRUCT:
         self.ouch = InternalError()
         self.ouch.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.STRUCT:
         self.not_logged_in = NotLoggedIn()
         self.not_logged_in.read(iprot)
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #28
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.image = []
         (_etype3, _size0) = iprot.readListBegin()
         for _i4 in xrange(_size0):
           _elem5 = []
           (_etype9, _size6) = iprot.readListBegin()
           for _i10 in xrange(_size6):
             _elem11 = []
             (_etype15, _size12) = iprot.readListBegin()
             for _i16 in xrange(_size12):
               _elem17 = iprot.readDouble();
               _elem11.append(_elem17)
             iprot.readListEnd()
             _elem5.append(_elem11)
           iprot.readListEnd()
           self.image.append(_elem5)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #29
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.id = iprot.readString()
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.name = iprot.readString()
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.BOOL:
         self.done = iprot.readBool()
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.STRING:
         self.userId = iprot.readString()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
 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 == 0:
       if ftype == TType.STRING:
         self.success = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 1:
       if ftype == TType.STRUCT:
         self.tnde = Exception.ttypes.ThriftNoStreamDefinitionExistException()
         self.tnde.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRUCT:
         self.se = Exception.ttypes.ThriftSessionExpiredException()
         self.se.read(iprot)
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
 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.call_id = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.inter_idx = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.call_sor_id = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.STRING:
                 self.call_dst_id = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRING:
                 self.flow = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.auth_token = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.entrance_id = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRING:
                 self.start_time = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.STRING:
                 self.ses_time = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.STRING:
                 self.suilu_region_id = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 11:
             if ftype == TType.STRING:
                 self.cc_id = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 12:
             if ftype == TType.STRING:
                 self.role_label = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 13:
             if ftype == TType.STRING:
                 self.begin_play = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 14:
             if ftype == TType.STRING:
                 self.end_play = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 15:
             if ftype == TType.STRING:
                 self.result_time = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 16:
             if ftype == TType.STRING:
                 self.flow_result_type = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 17:
             if ftype == TType.STRING:
                 self.input = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 18:
             if ftype == TType.STRING:
                 self.org = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 19:
             if ftype == TType.STRING:
                 self.newsess = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 20:
             if ftype == TType.STRING:
                 self.trans_idx = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 21:
             if ftype == TType.STRING:
                 self.begin_trans = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 22:
             if ftype == TType.STRING:
                 self.end_trans = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 23:
             if ftype == TType.STRING:
                 self.trans_result = iprot.readString()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #32
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.errNo = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.STRING:
         self.errMsg = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I32:
         self.cityId = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.STRING:
         self.jobId = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 5:
       if ftype == TType.STRING:
         self.seqId = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 6:
       if ftype == TType.I64:
         self.timestamp = iprot.readI64();
       else:
         iprot.skip(ftype)
     elif fid == 7:
       if ftype == TType.MAP:
         self.orderIds = {}
         (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin()
         for _i4 in xrange(_size0):
           _key5 = iprot.readString();
           _val6 = []
           (_etype10, _size7) = iprot.readListBegin()
           for _i11 in xrange(_size7):
             _elem12 = iprot.readI64();
             _val6.append(_elem12)
           iprot.readListEnd()
           self.orderIds[_key5] = _val6
         iprot.readMapEnd()
       else:
         iprot.skip(ftype)
     elif fid == 8:
       if ftype == TType.MAP:
         self.driverIds = {}
         (_ktype14, _vtype15, _size13 ) = iprot.readMapBegin()
         for _i17 in xrange(_size13):
           _key18 = iprot.readString();
           _val19 = []
           (_etype23, _size20) = iprot.readListBegin()
           for _i24 in xrange(_size20):
             _elem25 = iprot.readI64();
             _val19.append(_elem25)
           iprot.readListEnd()
           self.driverIds[_key18] = _val19
         iprot.readMapEnd()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #33
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.path = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.BOOL:
                 self.isDir = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.I64:
                 self.atime = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I64:
                 self.mtime = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.I16:
                 self.perms = iprot.readI16()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.owner = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.group = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 13:
             if ftype == TType.I64:
                 self.length = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 14:
             if ftype == TType.I64:
                 self.blockSize = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 15:
             if ftype == TType.I16:
                 self.replication = iprot.readI16()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #34
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.STRING:
                 self.storageID = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.host = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I32:
                 self.thriftPort = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.I32:
                 self.httpPort = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.I64:
                 self.capacity = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.I64:
                 self.dfsUsed = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.I64:
                 self.remaining = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.I32:
                 self.xceiverCount = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.I32:
                 self.state = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 11:
             if ftype == TType.I64:
                 self.millisSinceUpdate = iprot.readI64()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #35
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.numeroProntuario = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.cns = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.I64:
                 self.dataNascimento = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I64:
                 self.localDeAtendimento = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.I64:
                 self.sexo = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.I64:
                 self.turno = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.I64:
                 self.tipoAtendimento = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.DOUBLE:
                 self.pesoAcompanhamentoNutricional = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.DOUBLE:
                 self.alturaAcompanhamentoNutricional = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.I64:
                 self.aleitamentoMaterno = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 11:
             if ftype == TType.I64:
                 self.dumDaGestante = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 12:
             if ftype == TType.I32:
                 self.idadeGestacional = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 13:
             if ftype == TType.I64:
                 self.atencaoDomiciliarModalidade = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 14:
             if ftype == TType.STRUCT:
                 self.problemaCondicaoAvaliada = ProblemaCondicaoAvaliacaoAIThrift(
                 )
                 self.problemaCondicaoAvaliada.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 17:
             if ftype == TType.LIST:
                 self.exame = []
                 (_etype17, _size14) = iprot.readListBegin()
                 for _i18 in xrange(_size14):
                     _elem19 = ExameThrift()
                     _elem19.read(iprot)
                     self.exame.append(_elem19)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 18:
             if ftype == TType.BOOL:
                 self.vacinaEmDia = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 19:
             if ftype == TType.I64:
                 self.pic = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 20:
             if ftype == TType.BOOL:
                 self.ficouEmObservacao = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 21:
             if ftype == TType.LIST:
                 self.nasfs = []
                 (_etype23, _size20) = iprot.readListBegin()
                 for _i24 in xrange(_size20):
                     _elem25 = iprot.readI64()
                     self.nasfs.append(_elem25)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 22:
             if ftype == TType.LIST:
                 self.condutas = []
                 (_etype29, _size26) = iprot.readListBegin()
                 for _i30 in xrange(_size26):
                     _elem31 = iprot.readI64()
                     self.condutas.append(_elem31)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 23:
             if ftype == TType.BOOL:
                 self.stGravidezPlanejada = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 24:
             if ftype == TType.I32:
                 self.nuGestasPrevias = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 25:
             if ftype == TType.I32:
                 self.nuPartos = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 26:
             if ftype == TType.I64:
                 self.racionalidadeSaude = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 27:
             if ftype == TType.DOUBLE:
                 self.perimetroCefalico = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         elif fid == 28:
             if ftype == TType.I64:
                 self.dataHoraInicialAtendimento = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 29:
             if ftype == TType.I64:
                 self.dataHoraFinalAtendimento = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 30:
             if ftype == TType.STRING:
                 self.cpfCidadao = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 31:
             if ftype == TType.LIST:
                 self.medicamentos = []
                 (_etype35, _size32) = iprot.readListBegin()
                 for _i36 in xrange(_size32):
                     _elem37 = br.gov.saude.esusab.ras.common.ttypes.MedicamentoThrift(
                     )
                     _elem37.read(iprot)
                     self.medicamentos.append(_elem37)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 32:
             if ftype == TType.LIST:
                 self.encaminhamentos = []
                 (_etype41, _size38) = iprot.readListBegin()
                 for _i42 in xrange(_size38):
                     _elem43 = br.gov.saude.esusab.ras.common.ttypes.EncaminhamentoExternoThrift(
                     )
                     _elem43.read(iprot)
                     self.encaminhamentos.append(_elem43)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
 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.I32:
         self.maxVersions = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.STRING:
         self.compression = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.BOOL:
         self.inMemory = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 5:
       if ftype == TType.I32:
         self.maxValueLength = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 6:
       if ftype == TType.STRING:
         self.bloomFilterType = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == 7:
       if ftype == TType.I32:
         self.bloomFilterVectorSize = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 8:
       if ftype == TType.I32:
         self.bloomFilterNbHashes = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == 9:
       if ftype == TType.BOOL:
         self.blockCacheEnabled = iprot.readBool();
       else:
         iprot.skip(ftype)
     elif fid == 10:
       if ftype == TType.I32:
         self.timeToLive = iprot.readI32();
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
 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.call_id = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.inter_idx = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.flow_type = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.STRING:
                 self.flow_node_name = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRING:
                 self.model_type = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.prompt_type = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.prompt_wav = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRING:
                 self.prompt_text = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.STRING:
                 self.timeout = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.STRING:
                 self.grammar = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 11:
             if ftype == TType.STRING:
                 self.org = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 12:
             if ftype == TType.STRING:
                 self.newsess = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 13:
             if ftype == TType.STRING:
                 self.delay = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 14:
             if ftype == TType.STRING:
                 self.act_params = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 15:
             if ftype == TType.STRING:
                 self.trans_idx = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 16:
             if ftype == TType.STRING:
                 self.call_sor_id = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 17:
             if ftype == TType.STRING:
                 self.trans_type = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 18:
             if ftype == TType.STRING:
                 self.route_value = iprot.readString()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #38
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.accountId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.I32:
                 self.tableNum = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.I32:
                 self.tableNumUsed = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I64:
                 self.space = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.I64:
                 self.spaceUsed = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.I64:
                 self.readCapacity = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.I64:
                 self.readCapacityUsed = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.I64:
                 self.writeCapacity = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.I64:
                 self.writeCapacityUsed = iprot.readI64()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #39
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.applicationInterfaceId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.applicationName = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.applicationDescription = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.LIST:
                 self.applicationModules = []
                 (_etype3, _size0) = iprot.readListBegin()
                 for _i4 in xrange(_size0):
                     _elem5 = iprot.readString()
                     self.applicationModules.append(_elem5)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.LIST:
                 self.applicationInputs = []
                 (_etype9, _size6) = iprot.readListBegin()
                 for _i10 in xrange(_size6):
                     _elem11 = apache.airavata.model.application.io.ttypes.InputDataObjectType(
                     )
                     _elem11.read(iprot)
                     self.applicationInputs.append(_elem11)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.LIST:
                 self.applicationOutputs = []
                 (_etype15, _size12) = iprot.readListBegin()
                 for _i16 in xrange(_size12):
                     _elem17 = apache.airavata.model.application.io.ttypes.OutputDataObjectType(
                     )
                     _elem17.read(iprot)
                     self.applicationOutputs.append(_elem17)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
 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.userid = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.I32:
                 self.inaction = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRUCT:
                 self.inparams = InParams()
                 self.inparams.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I32:
                 self.ret = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.I32:
                 self.outaction = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRUCT:
                 self.outparams = OutParams()
                 self.outparams.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.authResult = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRING:
                 self.NLUResult = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.STRING:
                 self.ASRResult = iprot.readString()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #41
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.url = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.effective_url = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.I16:
                 self.current_priority = iprot.readI16()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I64:
                 self.begin_processing = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.I64:
                 self.end_processing = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.MAP:
                 self.req_header = {}
                 (_ktype1, _vtype2, _size0) = iprot.readMapBegin()
                 for _i4 in xrange(_size0):
                     _key5 = iprot.readString()
                     _val6 = iprot.readString()
                     self.req_header[_key5] = _val6
                 iprot.readMapEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.MAP:
                 self.rep_header = {}
                 (_ktype8, _vtype9, _size7) = iprot.readMapBegin()
                 for _i11 in xrange(_size7):
                     _key12 = iprot.readString()
                     _val13 = iprot.readString()
                     self.rep_header[_key12] = _val13
                 iprot.readMapEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRING:
                 self.content_body = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.I16:
                 self.status_code = iprot.readI16()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.DOUBLE:
                 self.req_time = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         elif fid == 11:
             if ftype == TType.DOUBLE:
                 self.queue_time = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         elif fid == 12:
             if ftype == TType.MAP:
                 self.optional_vars = {}
                 (_ktype15, _vtype16, _size14) = iprot.readMapBegin()
                 for _i18 in xrange(_size14):
                     _key19 = iprot.readString()
                     _val20 = iprot.readString()
                     self.optional_vars[_key19] = _val20
                 iprot.readMapEnd()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #42
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 == 0:
             if ftype == TType.I64:
                 self.success = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 1:
             if ftype == TType.STRUCT:
                 self.ex1 = ValidationException()
                 self.ex1.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRUCT:
                 self.ex2 = NotFoundException()
                 self.ex2.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.STRUCT:
                 self.ex4 = CompilationException()
                 self.ex4.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRUCT:
                 self.ex5 = InternalException()
                 self.ex5.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRUCT:
                 self.ex6 = PermissionException()
                 self.ex6.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRUCT:
                 self.ex7 = QuotaException()
                 self.ex7.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRUCT:
                 self.ex8 = ForbiddenTestJobException()
                 self.ex8.read(iprot)
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #43
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.userId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.gatewayID = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.credentialStoreToken = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.LIST:
                 self.userComputeResourcePreferences = []
                 (_etype3, _size0) = iprot.readListBegin()
                 for _i4 in xrange(_size0):
                     _elem5 = UserComputeResourcePreference()
                     _elem5.read(iprot)
                     self.userComputeResourcePreferences.append(_elem5)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.LIST:
                 self.userStoragePreferences = []
                 (_etype9, _size6) = iprot.readListBegin()
                 for _i10 in xrange(_size6):
                     _elem11 = UserStoragePreference()
                     _elem11.read(iprot)
                     self.userStoragePreferences.append(_elem11)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.identityServerTenant = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.identityServerPwdCredToken = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.BOOL:
                 self.isNull = iprot.readBool()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #44
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.identifier = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.password = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.keyname = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.STRING:
                 self.crypto = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.BOOL:
                 self.keepLoggedIn = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.accessLocation = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.systemName = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.I32:
                 self.identityProvider = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.STRING:
                 self.certificate = iprot.readString()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #45
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.amount = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.I32:
                 self.feeAmount = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.bit61 = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.STRING:
                 self.bit48 = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRING:
                 self.bit39 = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.trx_id = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.timestamp = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRING:
                 self.error_msg = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.STRING:
                 self.counter = iprot.readString()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #46
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.BOOL:
                 self.a_bool = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.BYTE:
                 self.a_byte = iprot.readByte()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.I16:
                 self.a_i16 = iprot.readI16()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I32:
                 self.a_i32 = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.I64:
                 self.a_i64 = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.DOUBLE:
                 self.a_double = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.a_string = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRING:
                 self.a_binary = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.I32:
                 self.a_enum = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.STRUCT:
                 self.a_struct = TestStruct()
                 self.a_struct.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 11:
             if ftype == TType.SET:
                 self.a_set = set()
                 (_etype3, _size0) = iprot.readSetBegin()
                 for _i4 in xrange(_size0):
                     _elem5 = iprot.readI32()
                     self.a_set.add(_elem5)
                 iprot.readSetEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 12:
             if ftype == TType.LIST:
                 self.a_list = []
                 (_etype9, _size6) = iprot.readListBegin()
                 for _i10 in xrange(_size6):
                     _elem11 = TestStruct()
                     _elem11.read(iprot)
                     self.a_list.append(_elem11)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 13:
             if ftype == TType.MAP:
                 self.a_map = {}
                 (_ktype13, _vtype14, _size12) = iprot.readMapBegin()
                 for _i16 in xrange(_size12):
                     _key17 = iprot.readI32()
                     _val18 = TestStruct()
                     _val18.read(iprot)
                     self.a_map[_key17] = _val18
                 iprot.readMapEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 14:
             if ftype == TType.STRING:
                 self.a_string_with_default = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 15:
             if ftype == TType.LIST:
                 self.a_string_list = []
                 (_etype22, _size19) = iprot.readListBegin()
                 for _i23 in xrange(_size19):
                     _elem24 = iprot.readString()
                     self.a_string_list.append(_elem24)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #47
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.stageId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.I32:
                 self.stageType = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.MAP:
                 self.stageAttributes = {}
                 (_ktype65, _vtype66, _size64) = iprot.readMapBegin()
                 for _i68 in xrange(_size64):
                     _key69 = iprot.readString()
                     _val70 = iprot.readString()
                     self.stageAttributes[_key69] = _val70
                 iprot.readMapEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.MAP:
                 self.stageCounters = {}
                 (_ktype72, _vtype73, _size71) = iprot.readMapBegin()
                 for _i75 in xrange(_size71):
                     _key76 = iprot.readString()
                     _val77 = iprot.readI64()
                     self.stageCounters[_key76] = _val77
                 iprot.readMapEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.LIST:
                 self.taskList = []
                 (_etype81, _size78) = iprot.readListBegin()
                 for _i82 in xrange(_size78):
                     _elem83 = Task()
                     _elem83.read(iprot)
                     self.taskList.append(_elem83)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.BOOL:
                 self.done = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.BOOL:
                 self.started = iprot.readBool()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #48
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.computeResourceId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.loginUserName = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.preferredBatchQueue = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.STRING:
                 self.scratchLocation = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRING:
                 self.allocationProjectNumber = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.resourceSpecificCredentialStoreToken = iprot.readString(
                 )
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.qualityOfService = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRING:
                 self.reservation = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.I64:
                 self.reservationStartTime = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.I64:
                 self.reservationEndTime = iprot.readI64()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #49
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.queryId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.queryType = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.MAP:
                 self.queryAttributes = {}
                 (_ktype90, _vtype91, _size89) = iprot.readMapBegin()
                 for _i93 in xrange(_size89):
                     _key94 = iprot.readString()
                     _val95 = iprot.readString()
                     self.queryAttributes[_key94] = _val95
                 iprot.readMapEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.MAP:
                 self.queryCounters = {}
                 (_ktype97, _vtype98, _size96) = iprot.readMapBegin()
                 for _i100 in xrange(_size96):
                     _key101 = iprot.readString()
                     _val102 = iprot.readI64()
                     self.queryCounters[_key101] = _val102
                 iprot.readMapEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRUCT:
                 self.stageGraph = Graph()
                 self.stageGraph.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.LIST:
                 self.stageList = []
                 (_etype106, _size103) = iprot.readListBegin()
                 for _i107 in xrange(_size103):
                     _elem108 = Stage()
                     _elem108.read(iprot)
                     self.stageList.append(_elem108)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.BOOL:
                 self.done = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.BOOL:
                 self.started = iprot.readBool()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #50
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.user_id = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.nickname = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.avatar = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.STRING:
                 self.signature = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRING:
                 self.bgimageurl = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.BYTE:
                 self.gender = iprot.readByte()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.birthday = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRING:
                 self.country = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.STRING:
                 self.province = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.STRING:
                 self.city = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 11:
             if ftype == TType.STRING:
                 self.mobile = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 12:
             if ftype == TType.STRING:
                 self.unionid = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 13:
             if ftype == TType.BYTE:
                 self.mark = iprot.readByte()
             else:
                 iprot.skip(ftype)
         elif fid == 14:
             if ftype == TType.STRING:
                 self.create_time = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 15:
             if ftype == TType.STRING:
                 self.update_time = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 16:
             if ftype == TType.STRING:
                 self.openid = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 17:
             if ftype == TType.STRING:
                 self.follow_time = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 18:
             if ftype == TType.STRING:
                 self.follow_source = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 19:
             if ftype == TType.STRING:
                 self.cname = iprot.readString()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #51
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.STRUCT:
                    self.route = RouteIDL()
                    self.route.read(iprot)
                else:
                    iprot.skip(ftype)
            elif fid == 2:
                if ftype == TType.I16:
                    self.l3UcastRouteType = iprot.readI16()
                else:
                    iprot.skip(ftype)
            elif fid == 3:
                if ftype == TType.I16:
                    self.ownerType = iprot.readI16()
                else:
                    iprot.skip(ftype)
            elif fid == 4:
                if ftype == TType.STRING:
                    self.tag = iprot.readString()
                else:
                    iprot.skip(ftype)
            elif fid == 5:
                if ftype == TType.STRUCT:
                    self.prefix = Shared.ttypes.NetworkPrefixIDL()
                    self.prefix.read(iprot)
                else:
                    iprot.skip(ftype)
            elif fid == 6:
                if ftype == TType.LIST:
                    self.hopList = []
                    (
                        _etype3,
                        _size0,
                    ) = iprot.readListBegin()
                    for _i4 in xrange(_size0):
                        _elem5 = L3UcastRouteNextHopIDL()
                        _elem5.read(iprot)
                        self.hopList.append(_elem5)

                    iprot.readListEnd()
                else:
                    iprot.skip(ftype)
            else:
                iprot.skip(ftype)
            iprot.readFieldEnd()

        iprot.readStructEnd()
Beispiel #52
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.taskId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.I32:
                 self.taskType = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.MAP:
                 self.taskAttributes = {}
                 (_ktype40, _vtype41, _size39) = iprot.readMapBegin()
                 for _i43 in xrange(_size39):
                     _key44 = iprot.readString()
                     _val45 = iprot.readString()
                     self.taskAttributes[_key44] = _val45
                 iprot.readMapEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.MAP:
                 self.taskCounters = {}
                 (_ktype47, _vtype48, _size46) = iprot.readMapBegin()
                 for _i50 in xrange(_size46):
                     _key51 = iprot.readString()
                     _val52 = iprot.readI64()
                     self.taskCounters[_key51] = _val52
                 iprot.readMapEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRUCT:
                 self.operatorGraph = Graph()
                 self.operatorGraph.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.LIST:
                 self.operatorList = []
                 (_etype56, _size53) = iprot.readListBegin()
                 for _i57 in xrange(_size53):
                     _elem58 = Operator()
                     _elem58.read(iprot)
                     self.operatorList.append(_elem58)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.BOOL:
                 self.done = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.BOOL:
                 self.started = iprot.readBool()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
 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.STRUCT:
         self.pid = ttypes.gpid()
         self.pid.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 2:
       if ftype == TType.I64:
         self.ballot = iprot.readI64()
       else:
         iprot.skip(ftype)
     elif fid == 3:
       if ftype == TType.I32:
         self.max_replica_count = iprot.readI32()
       else:
         iprot.skip(ftype)
     elif fid == 4:
       if ftype == TType.STRUCT:
         self.primary = ttypes.rpc_address()
         self.primary.read(iprot)
       else:
         iprot.skip(ftype)
     elif fid == 5:
       if ftype == TType.LIST:
         self.secondaries = []
         (_etype3, _size0) = iprot.readListBegin()
         for _i4 in xrange(_size0):
           _elem5 = ttypes.rpc_address()
           _elem5.read(iprot)
           self.secondaries.append(_elem5)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     elif fid == 6:
       if ftype == TType.LIST:
         self.last_drops = []
         (_etype9, _size6) = iprot.readListBegin()
         for _i10 in xrange(_size6):
           _elem11 = ttypes.rpc_address()
           _elem11.read(iprot)
           self.last_drops.append(_elem11)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     elif fid == 7:
       if ftype == TType.I64:
         self.last_committed_decree = iprot.readI64()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #54
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.trace_id = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.name = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I64:
                 self.id = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.I64:
                 self.parent_id = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.LIST:
                 self.annotations = []
                 (_etype3, _size0) = iprot.readListBegin()
                 for _i4 in xrange(_size0):
                     _elem5 = Annotation()
                     _elem5.read(iprot)
                     self.annotations.append(_elem5)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.LIST:
                 self.binary_annotations = []
                 (_etype9, _size6) = iprot.readListBegin()
                 for _i10 in xrange(_size6):
                     _elem11 = BinaryAnnotation()
                     _elem11.read(iprot)
                     self.binary_annotations.append(_elem11)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.BOOL:
                 self.debug = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.I64:
                 self.timestamp = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 11:
             if ftype == TType.I64:
                 self.duration = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 12:
             if ftype == TType.I64:
                 self.trace_id_high = iprot.readI64()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #55
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.computeResourceId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.BOOL:
                 self.overridebyAiravata = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.loginUserName = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I32:
                 self.preferredJobSubmissionProtocol = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.I32:
                 self.preferredDataMovementProtocol = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.preferredBatchQueue = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.scratchLocation = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRING:
                 self.allocationProjectNumber = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.STRING:
                 self.resourceSpecificCredentialStoreToken = iprot.readString(
                 )
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.STRING:
                 self.usageReportingGatewayId = iprot.readString()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #56
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.job_id = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.username = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.failure_info = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.BOOL:
                 self.complete = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.I32:
                 self.running_state = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.I64:
                 self.start_time = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.priority = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.DOUBLE:
                 self.mapProgress = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.DOUBLE:
                 self.reduceProgress = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #57
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.experimentId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.projectId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.gatewayId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I64:
                 self.creationTime = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRING:
                 self.userName = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.name = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.STRING:
                 self.description = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRING:
                 self.executionId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.STRING:
                 self.resourceHostId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.STRING:
                 self.experimentStatus = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 12:
             if ftype == TType.I64:
                 self.statusUpdateTime = iprot.readI64()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #58
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.code = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == -2:
       if ftype == TType.STRING:
         self.time = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == -3:
       if ftype == TType.DOUBLE:
         self.lastClose = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -4:
       if ftype == TType.DOUBLE:
         self.open = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -5:
       if ftype == TType.DOUBLE:
         self.price = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -6:
       if ftype == TType.DOUBLE:
         self.profit = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -7:
       if ftype == TType.DOUBLE:
         self.max = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -8:
       if ftype == TType.DOUBLE:
         self.min = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -9:
       if ftype == TType.DOUBLE:
         self.amount = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -10:
       if ftype == TType.DOUBLE:
         self.qty = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -11:
       if ftype == TType.DOUBLE:
         self.inDish = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -12:
       if ftype == TType.DOUBLE:
         self.outDish = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -13:
       if ftype == TType.STRING:
         self.tp = iprot.readString();
       else:
         iprot.skip(ftype)
     elif fid == -14:
       if ftype == TType.I32:
         self.status = iprot.readI32();
       else:
         iprot.skip(ftype)
     elif fid == -15:
       if ftype == TType.DOUBLE:
         self.turnoverRate = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -16:
       if ftype == TType.DOUBLE:
         self.amplitude = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -17:
       if ftype == TType.DOUBLE:
         self.floating = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -18:
       if ftype == TType.DOUBLE:
         self.total = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -19:
       if ftype == TType.DOUBLE:
         self.floatingValue = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -20:
       if ftype == TType.DOUBLE:
         self.totalValue = iprot.readDouble();
       else:
         iprot.skip(ftype)
     elif fid == -21:
       if ftype == TType.LIST:
         self.buylist = []
         (_etype3, _size0) = iprot.readListBegin()
         for _i4 in xrange(_size0):
           _elem5 = OfferDetail()
           _elem5.read(iprot)
           self.buylist.append(_elem5)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     elif fid == -22:
       if ftype == TType.LIST:
         self.selllist = []
         (_etype9, _size6) = iprot.readListBegin()
         for _i10 in xrange(_size6):
           _elem11 = OfferDetail()
           _elem11.read(iprot)
           self.selllist.append(_elem11)
         iprot.readListEnd()
       else:
         iprot.skip(ftype)
     else:
       iprot.skip(ftype)
     iprot.readFieldEnd()
   iprot.readStructEnd()
Beispiel #59
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.experimentId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.STRING:
                 self.projectId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.gatewayId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.I32:
                 self.experimentType = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRING:
                 self.userName = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.STRING:
                 self.experimentName = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.I64:
                 self.creationTime = iprot.readI64()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.STRING:
                 self.description = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.STRING:
                 self.executionId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 10:
             if ftype == TType.STRING:
                 self.gatewayExecutionId = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 11:
             if ftype == TType.BOOL:
                 self.enableEmailNotification = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 12:
             if ftype == TType.LIST:
                 self.emailAddresses = []
                 (_etype3, _size0) = iprot.readListBegin()
                 for _i4 in xrange(_size0):
                     _elem5 = iprot.readString()
                     self.emailAddresses.append(_elem5)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 13:
             if ftype == TType.STRUCT:
                 self.userConfigurationData = UserConfigurationDataModel()
                 self.userConfigurationData.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 14:
             if ftype == TType.LIST:
                 self.experimentInputs = []
                 (_etype9, _size6) = iprot.readListBegin()
                 for _i10 in xrange(_size6):
                     _elem11 = apache.airavata.model.application.io.ttypes.InputDataObjectType(
                     )
                     _elem11.read(iprot)
                     self.experimentInputs.append(_elem11)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 15:
             if ftype == TType.LIST:
                 self.experimentOutputs = []
                 (_etype15, _size12) = iprot.readListBegin()
                 for _i16 in xrange(_size12):
                     _elem17 = apache.airavata.model.application.io.ttypes.OutputDataObjectType(
                     )
                     _elem17.read(iprot)
                     self.experimentOutputs.append(_elem17)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         elif fid == 16:
             if ftype == TType.STRUCT:
                 self.experimentStatus = apache.airavata.model.status.ttypes.ExperimentStatus(
                 )
                 self.experimentStatus.read(iprot)
             else:
                 iprot.skip(ftype)
         elif fid == 17:
             if ftype == TType.LIST:
                 self.errors = []
                 (_etype21, _size18) = iprot.readListBegin()
                 for _i22 in xrange(_size18):
                     _elem23 = apache.airavata.model.commons.ttypes.ErrorModel(
                     )
                     _elem23.read(iprot)
                     self.errors.append(_elem23)
                 iprot.readListEnd()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()
Beispiel #60
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.db = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 2:
             if ftype == TType.BOOL:
                 self.raw = iprot.readBool()
             else:
                 iprot.skip(ftype)
         elif fid == 3:
             if ftype == TType.STRING:
                 self.url = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 4:
             if ftype == TType.STRING:
                 self.content = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 5:
             if ftype == TType.STRING:
                 self.type = iprot.readString()
             else:
                 iprot.skip(ftype)
         elif fid == 6:
             if ftype == TType.I32:
                 self.K = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 7:
             if ftype == TType.DOUBLE:
                 self.R = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         elif fid == 8:
             if ftype == TType.I32:
                 self.hint_K = iprot.readI32()
             else:
                 iprot.skip(ftype)
         elif fid == 9:
             if ftype == TType.DOUBLE:
                 self.hint_R = iprot.readDouble()
             else:
                 iprot.skip(ftype)
         else:
             iprot.skip(ftype)
         iprot.readFieldEnd()
     iprot.readStructEnd()