Ejemplo n.º 1
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('Alarm')
   if self.timestamp is not None:
     oprot.writeFieldBegin('timestamp', TType.I64, 1)
     oprot.writeI64(self.timestamp)
     oprot.writeFieldEnd()
   if self.category is not None:
     oprot.writeFieldBegin('category', TType.STRING, 2)
     oprot.writeString(self.category)
     oprot.writeFieldEnd()
   if self.key is not None:
     oprot.writeFieldBegin('key', TType.STRING, 3)
     oprot.writeString(self.key)
     oprot.writeFieldEnd()
   if self.reason is not None:
     oprot.writeFieldBegin('reason', TType.STRING, 4)
     oprot.writeString(self.reason)
     oprot.writeFieldEnd()
   if self.level is not None:
     oprot.writeFieldBegin('level', TType.I32, 5)
     oprot.writeI32(self.level)
     oprot.writeFieldEnd()
   if self.host is not None:
     oprot.writeFieldBegin('host', TType.STRING, 6)
     oprot.writeString(self.host)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 2
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('addQuestion_result')
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 3
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('HqlResult')
   if self.results != None:
     oprot.writeFieldBegin('results', TType.LIST, 1)
     oprot.writeListBegin(TType.STRING, len(self.results))
     for iter12 in self.results:
       oprot.writeString(iter12)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   if self.cells != None:
     oprot.writeFieldBegin('cells', TType.LIST, 2)
     oprot.writeListBegin(TType.STRUCT, len(self.cells))
     for iter13 in self.cells:
       iter13.write(oprot)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   if self.scanner != None:
     oprot.writeFieldBegin('scanner', TType.I64, 3)
     oprot.writeI64(self.scanner)
     oprot.writeFieldEnd()
   if self.mutator != None:
     oprot.writeFieldBegin('mutator', TType.I64, 4)
     oprot.writeI64(self.mutator)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 4
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('User')
   if self.firstname != None:
     oprot.writeFieldBegin('firstname', TType.STRING, 1)
     oprot.writeString(self.firstname)
     oprot.writeFieldEnd()
   if self.lastname != None:
     oprot.writeFieldBegin('lastname', TType.STRING, 2)
     oprot.writeString(self.lastname)
     oprot.writeFieldEnd()
   if self.user_id != None:
     oprot.writeFieldBegin('user_id', TType.I32, 3)
     oprot.writeI32(self.user_id)
     oprot.writeFieldEnd()
   if self.sex != None:
     oprot.writeFieldBegin('sex', TType.I32, 4)
     oprot.writeI32(self.sex)
     oprot.writeFieldEnd()
   if self.active != None:
     oprot.writeFieldBegin('active', TType.BOOL, 5)
     oprot.writeBool(self.active)
     oprot.writeFieldEnd()
   if self.description != None:
     oprot.writeFieldBegin('description', TType.STRING, 6)
     oprot.writeString(self.description)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
   def validate(self):
     return
Ejemplo n.º 5
0
 def write(self, oprot):
     if (
         oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated
         and self.thrift_spec is not None
         and fastbinary is not None
     ):
         oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin("range_args")
     if self.domain is not None:
         oprot.writeFieldBegin("domain", TType.STRING, 1)
         oprot.writeString(self.domain.encode("utf-8"))
         oprot.writeFieldEnd()
     if self.key is not None:
         oprot.writeFieldBegin("key", TType.STRING, 2)
         oprot.writeString(self.key.encode("utf-8"))
         oprot.writeFieldEnd()
     if self.startIdx is not None:
         oprot.writeFieldBegin("startIdx", TType.I32, 3)
         oprot.writeI32(self.startIdx)
         oprot.writeFieldEnd()
     if self.endIdx is not None:
         oprot.writeFieldBegin("endIdx", TType.I32, 4)
         oprot.writeI32(self.endIdx)
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 6
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('Span')
   if self.timestamp is not None:
     oprot.writeFieldBegin('timestamp', TType.I64, 1)
     oprot.writeI64(self.timestamp)
     oprot.writeFieldEnd()
   if self.trace_id is not None:
     oprot.writeFieldBegin('trace_id', TType.I64, 2)
     oprot.writeI64(self.trace_id)
     oprot.writeFieldEnd()
   if self.name is not None:
     oprot.writeFieldBegin('name', TType.STRING, 3)
     oprot.writeString(self.name)
     oprot.writeFieldEnd()
   if self.id is not None:
     oprot.writeFieldBegin('id', TType.I64, 4)
     oprot.writeI64(self.id)
     oprot.writeFieldEnd()
   if self.parent_id is not None:
     oprot.writeFieldBegin('parent_id', TType.I64, 5)
     oprot.writeI64(self.parent_id)
     oprot.writeFieldEnd()
   if self.duration is not None:
     oprot.writeFieldBegin('duration', TType.I32, 6)
     oprot.writeI32(self.duration)
     oprot.writeFieldEnd()
   if self.host is not None:
     oprot.writeFieldBegin('host', TType.STRING, 7)
     oprot.writeString(self.host)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 7
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('Graph')
   if self.nodeType is not None:
     oprot.writeFieldBegin('nodeType', TType.I32, 1)
     oprot.writeI32(self.nodeType)
     oprot.writeFieldEnd()
   if self.roots is not None:
     oprot.writeFieldBegin('roots', TType.LIST, 2)
     oprot.writeListBegin(TType.STRING, len(self.roots))
     for iter19 in self.roots:
       oprot.writeString(iter19)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   if self.adjacencyList is not None:
     oprot.writeFieldBegin('adjacencyList', TType.LIST, 3)
     oprot.writeListBegin(TType.STRUCT, len(self.adjacencyList))
     for iter20 in self.adjacencyList:
       iter20.write(oprot)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 8
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('readBlock_args')
   if self.block != None:
     oprot.writeFieldBegin('block', TType.STRUCT, 1)
     self.block.write(oprot)
     oprot.writeFieldEnd()
   if self.offset != None:
     oprot.writeFieldBegin('offset', TType.I64, 2)
     oprot.writeI64(self.offset)
     oprot.writeFieldEnd()
   if self.length != None:
     oprot.writeFieldBegin('length', TType.I32, 3)
     oprot.writeI32(self.length)
     oprot.writeFieldEnd()
   if self.ctx != None:
     oprot.writeFieldBegin('ctx', TType.STRUCT, 10)
     self.ctx.write(oprot)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
   def validate(self):
     return
Ejemplo n.º 9
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('FuncStat')
   if self.file is not None:
     oprot.writeFieldBegin('file', TType.STRING, 1)
     oprot.writeString(self.file)
     oprot.writeFieldEnd()
   if self.line is not None:
     oprot.writeFieldBegin('line', TType.I32, 2)
     oprot.writeI32(self.line)
     oprot.writeFieldEnd()
   if self.func_name is not None:
     oprot.writeFieldBegin('func_name', TType.STRING, 3)
     oprot.writeString(self.func_name)
     oprot.writeFieldEnd()
   if self.calls_count is not None:
     oprot.writeFieldBegin('calls_count', TType.I32, 4)
     oprot.writeI32(self.calls_count)
     oprot.writeFieldEnd()
   if self.total_time is not None:
     oprot.writeFieldBegin('total_time', TType.DOUBLE, 5)
     oprot.writeDouble(self.total_time)
     oprot.writeFieldEnd()
   if self.own_time is not None:
     oprot.writeFieldBegin('own_time', TType.DOUBLE, 6)
     oprot.writeDouble(self.own_time)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 10
0
    def write(self, oprot):
        if (
            oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated
            and self.thrift_spec is not None
            and fastbinary is not None
        ):
            oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
            return
        oprot.writeStructBegin("RestResponse")
        if self.status != None:
            oprot.writeFieldBegin("status", TType.I32, 1)
            oprot.writeI32(self.status)
            oprot.writeFieldEnd()
        if self.headers != None:
            oprot.writeFieldBegin("headers", TType.MAP, 2)
            oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.headers))
            for kiter25, viter26 in self.headers.items():
                oprot.writeString(kiter25)
                oprot.writeString(viter26)
            oprot.writeMapEnd()
            oprot.writeFieldEnd()
        if self.body != None:
            oprot.writeFieldBegin("body", TType.STRING, 3)
            oprot.writeString(self.body)
            oprot.writeFieldEnd()
        oprot.writeFieldStop()
        oprot.writeStructEnd()

        def validate(self):
            if self.status is None:
                raise TProtocol.TProtocolException(message="Required field status is unset!")
            return
Ejemplo n.º 11
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('HeartbeatAppInfo')
   if self.app_name is not None:
     oprot.writeFieldBegin('app_name', TType.STRING, 1)
     oprot.writeString(self.app_name)
     oprot.writeFieldEnd()
   if self.state is not None:
     oprot.writeFieldBegin('state', TType.I32, 2)
     oprot.writeI32(self.state)
     oprot.writeFieldEnd()
   if self.error_id is not None:
     oprot.writeFieldBegin('error_id', TType.I32, 3)
     oprot.writeI32(self.error_id)
     oprot.writeFieldEnd()
   if self.app_x is not None:
     oprot.writeFieldBegin('app_x', TType.STRING, 4)
     oprot.writeString(self.app_x)
     oprot.writeFieldEnd()
   if self.app_y is not None:
     oprot.writeFieldBegin('app_y', TType.I32, 5)
     oprot.writeI32(self.app_y)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('defineStream_result')
   if self.success is not None:
     oprot.writeFieldBegin('success', TType.STRING, 0)
     oprot.writeString(self.success)
     oprot.writeFieldEnd()
   if self.ade is not None:
     oprot.writeFieldBegin('ade', TType.STRUCT, 1)
     self.ade.write(oprot)
     oprot.writeFieldEnd()
   if self.mtd is not None:
     oprot.writeFieldBegin('mtd', TType.STRUCT, 2)
     self.mtd.write(oprot)
     oprot.writeFieldEnd()
   if self.tde is not None:
     oprot.writeFieldBegin('tde', TType.STRUCT, 3)
     self.tde.write(oprot)
     oprot.writeFieldEnd()
   if self.se is not None:
     oprot.writeFieldBegin('se', TType.STRUCT, 4)
     self.se.write(oprot)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 13
0
Archivo: ttypes.py Proyecto: duydb2/ZTC
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('Shaping')
   if self.rate is not None:
     oprot.writeFieldBegin('rate', TType.I32, 1)
     oprot.writeI32(self.rate)
     oprot.writeFieldEnd()
   if self.delay is not None:
     oprot.writeFieldBegin('delay', TType.STRUCT, 2)
     self.delay.write(oprot)
     oprot.writeFieldEnd()
   if self.loss is not None:
     oprot.writeFieldBegin('loss', TType.STRUCT, 3)
     self.loss.write(oprot)
     oprot.writeFieldEnd()
   if self.reorder is not None:
     oprot.writeFieldBegin('reorder', TType.STRUCT, 4)
     self.reorder.write(oprot)
     oprot.writeFieldEnd()
   if self.corruption is not None:
     oprot.writeFieldBegin('corruption', TType.STRUCT, 5)
     self.corruption.write(oprot)
     oprot.writeFieldEnd()
   if self.iptables_options is not None:
     oprot.writeFieldBegin('iptables_options', TType.LIST, 6)
     oprot.writeListBegin(TType.STRING, len(self.iptables_options))
     for iter6 in self.iptables_options:
       oprot.writeString(iter6)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 14
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('UsersFavoritesRequest')
   if self.pagingRequest is not None:
     oprot.writeFieldBegin('pagingRequest', TType.STRUCT, 1)
     self.pagingRequest.write(oprot)
     oprot.writeFieldEnd()
   if self.userId is not None:
     oprot.writeFieldBegin('userId', TType.I32, 2)
     oprot.writeI32(self.userId)
     oprot.writeFieldEnd()
   if self.type is not None:
     oprot.writeFieldBegin('type', TType.I32, 3)
     oprot.writeI32(self.type)
     oprot.writeFieldEnd()
   if self.favUserIdSet is not None:
     oprot.writeFieldBegin('favUserIdSet', TType.SET, 4)
     oprot.writeSetBegin(TType.I32, len(self.favUserIdSet))
     for iter33 in self.favUserIdSet:
       oprot.writeI32(iter33)
     oprot.writeSetEnd()
     oprot.writeFieldEnd()
   if self.favWareIdSet is not None:
     oprot.writeFieldBegin('favWareIdSet', TType.SET, 5)
     oprot.writeSetBegin(TType.STRING, len(self.favWareIdSet))
     for iter34 in self.favWareIdSet:
       oprot.writeString(iter34)
     oprot.writeSetEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 15
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('FavoritesRemoveRequest')
   if self.type is not None:
     oprot.writeFieldBegin('type', TType.I32, 1)
     oprot.writeI32(self.type)
     oprot.writeFieldEnd()
   if self.userId is not None:
     oprot.writeFieldBegin('userId', TType.I32, 2)
     oprot.writeI32(self.userId)
     oprot.writeFieldEnd()
   if self.favUsrIds is not None:
     oprot.writeFieldBegin('favUsrIds', TType.SET, 3)
     oprot.writeSetBegin(TType.I32, len(self.favUsrIds))
     for iter19 in self.favUsrIds:
       oprot.writeI32(iter19)
     oprot.writeSetEnd()
     oprot.writeFieldEnd()
   if self.favWareIds is not None:
     oprot.writeFieldBegin('favWareIds', TType.SET, 4)
     oprot.writeSetBegin(TType.STRING, len(self.favWareIds))
     for iter20 in self.favWareIds:
       oprot.writeString(iter20)
     oprot.writeSetEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 16
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('Key')
   if self.row != None:
     oprot.writeFieldBegin('row', TType.STRING, 1)
     oprot.writeString(self.row)
     oprot.writeFieldEnd()
   if self.column_family != None:
     oprot.writeFieldBegin('column_family', TType.STRING, 2)
     oprot.writeString(self.column_family)
     oprot.writeFieldEnd()
   if self.column_qualifier != None:
     oprot.writeFieldBegin('column_qualifier', TType.STRING, 3)
     oprot.writeString(self.column_qualifier)
     oprot.writeFieldEnd()
   if self.timestamp != None:
     oprot.writeFieldBegin('timestamp', TType.I64, 4)
     oprot.writeI64(self.timestamp)
     oprot.writeFieldEnd()
   if self.revision != None:
     oprot.writeFieldBegin('revision', TType.I64, 5)
     oprot.writeI64(self.revision)
     oprot.writeFieldEnd()
   if self.flag != None:
     oprot.writeFieldBegin('flag', TType.I16, 6)
     oprot.writeI16(self.flag)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 17
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('MajorEnrollInfo')
   if self.diploma is not None:
     oprot.writeFieldBegin('diploma', TType.I32, 1)
     oprot.writeI32(self.diploma)
     oprot.writeFieldEnd()
   if self.majorSecondCate is not None:
     oprot.writeFieldBegin('majorSecondCate', TType.STRING, 2)
     oprot.writeString(self.majorSecondCate.encode('utf-8'))
     oprot.writeFieldEnd()
   if self.majorId is not None:
     oprot.writeFieldBegin('majorId', TType.STRING, 3)
     oprot.writeString(self.majorId.encode('utf-8'))
     oprot.writeFieldEnd()
   if self.year is not None:
     oprot.writeFieldBegin('year', TType.I16, 4)
     oprot.writeI16(self.year)
     oprot.writeFieldEnd()
   if self.schList is not None:
     oprot.writeFieldBegin('schList', TType.LIST, 5)
     oprot.writeListBegin(TType.STRUCT, len(self.schList))
     for iter27 in self.schList:
       iter27.write(oprot)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 18
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('SchEnrollPlan')
   if self.schId is not None:
     oprot.writeFieldBegin('schId', TType.STRING, 1)
     oprot.writeString(self.schId.encode('utf-8'))
     oprot.writeFieldEnd()
   if self.year is not None:
     oprot.writeFieldBegin('year', TType.I16, 2)
     oprot.writeI16(self.year)
     oprot.writeFieldEnd()
   if self.diploma is not None:
     oprot.writeFieldBegin('diploma', TType.I32, 3)
     oprot.writeI32(self.diploma)
     oprot.writeFieldEnd()
   if self.wenliType is not None:
     oprot.writeFieldBegin('wenliType', TType.I32, 4)
     oprot.writeI32(self.wenliType)
     oprot.writeFieldEnd()
   if self.fromProvinceId is not None:
     oprot.writeFieldBegin('fromProvinceId', TType.STRING, 5)
     oprot.writeString(self.fromProvinceId.encode('utf-8'))
     oprot.writeFieldEnd()
   if self.majorList is not None:
     oprot.writeFieldBegin('majorList', TType.LIST, 6)
     oprot.writeListBegin(TType.STRUCT, len(self.majorList))
     for iter6 in self.majorList:
       iter6.write(oprot)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 19
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('DataObject')
   if self.dbname is not None:
     oprot.writeFieldBegin('dbname', TType.STRING, 1)
     oprot.writeString(self.dbname)
     oprot.writeFieldEnd()
   if self.key is not None:
     oprot.writeFieldBegin('key', TType.STRING, 2)
     oprot.writeString(self.key)
     oprot.writeFieldEnd()
   if self.data is not None:
     oprot.writeFieldBegin('data', TType.STRING, 3)
     oprot.writeString(self.data)
     oprot.writeFieldEnd()
   if self.extension is not None:
     oprot.writeFieldBegin('extension', TType.STRING, 4)
     oprot.writeString(self.extension)
     oprot.writeFieldEnd()
   if self.timestamp is not None:
     oprot.writeFieldBegin('timestamp', TType.I64, 5)
     oprot.writeI64(self.timestamp)
     oprot.writeFieldEnd()
   if self.size is not None:
     oprot.writeFieldBegin('size', TType.I32, 6)
     oprot.writeI32(self.size)
     oprot.writeFieldEnd()
   if self.state is not None:
     oprot.writeFieldBegin('state', TType.I32, 7)
     oprot.writeI32(self.state)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 20
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('AuthenticationResult')
   if self.currentTime != None:
     oprot.writeFieldBegin('currentTime', TType.I64, 1)
     oprot.writeI64(self.currentTime)
     oprot.writeFieldEnd()
   if self.authenticationToken != None:
     oprot.writeFieldBegin('authenticationToken', TType.STRING, 2)
     oprot.writeString(self.authenticationToken)
     oprot.writeFieldEnd()
   if self.expiration != None:
     oprot.writeFieldBegin('expiration', TType.I64, 3)
     oprot.writeI64(self.expiration)
     oprot.writeFieldEnd()
   if self.user != None:
     oprot.writeFieldBegin('user', TType.STRUCT, 4)
     self.user.write(oprot)
     oprot.writeFieldEnd()
   if self.publicUserInfo != None:
     oprot.writeFieldBegin('publicUserInfo', TType.STRUCT, 5)
     self.publicUserInfo.write(oprot)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 21
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('CellInterval')
   if self.start_row != None:
     oprot.writeFieldBegin('start_row', TType.STRING, 1)
     oprot.writeString(self.start_row)
     oprot.writeFieldEnd()
   if self.start_column != None:
     oprot.writeFieldBegin('start_column', TType.STRING, 2)
     oprot.writeString(self.start_column)
     oprot.writeFieldEnd()
   if self.start_inclusive != None:
     oprot.writeFieldBegin('start_inclusive', TType.BOOL, 3)
     oprot.writeBool(self.start_inclusive)
     oprot.writeFieldEnd()
   if self.end_row != None:
     oprot.writeFieldBegin('end_row', TType.STRING, 4)
     oprot.writeString(self.end_row)
     oprot.writeFieldEnd()
   if self.end_column != None:
     oprot.writeFieldBegin('end_column', TType.STRING, 5)
     oprot.writeString(self.end_column)
     oprot.writeFieldEnd()
   if self.end_inclusive != None:
     oprot.writeFieldBegin('end_inclusive', TType.BOOL, 6)
     oprot.writeBool(self.end_inclusive)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 22
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('FichaAtendimentoIndividualMasterThrift')
   if self.headerTransport is not None:
     oprot.writeFieldBegin('headerTransport', TType.STRUCT, 1)
     self.headerTransport.write(oprot)
     oprot.writeFieldEnd()
   if self.atendimentosIndividuais is not None:
     oprot.writeFieldBegin('atendimentosIndividuais', TType.LIST, 2)
     oprot.writeListBegin(TType.STRUCT, len(self.atendimentosIndividuais))
     for iter55 in self.atendimentosIndividuais:
       iter55.write(oprot)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   if self.uuidFicha is not None:
     oprot.writeFieldBegin('uuidFicha', TType.STRING, 3)
     oprot.writeString(self.uuidFicha)
     oprot.writeFieldEnd()
   if self.tpCdsOrigem is not None:
     oprot.writeFieldBegin('tpCdsOrigem', TType.I32, 4)
     oprot.writeI32(self.tpCdsOrigem)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 23
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('LocationInfo')
   if self.parent is not None:
     oprot.writeFieldBegin('parent', TType.STRUCT, 1)
     self.parent.write(oprot)
     oprot.writeFieldEnd()
   if self.peers is not None:
     oprot.writeFieldBegin('peers', TType.LIST, 2)
     oprot.writeListBegin(TType.STRUCT, len(self.peers))
     for iter12 in self.peers:
       iter12.write(oprot)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   if self.children is not None:
     oprot.writeFieldBegin('children', TType.LIST, 3)
     oprot.writeListBegin(TType.STRUCT, len(self.children))
     for iter13 in self.children:
       iter13.write(oprot)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 24
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('MailObject')
   if self.sendto is not None:
     oprot.writeFieldBegin('sendto', TType.STRING, 1)
     oprot.writeString(self.sendto)
     oprot.writeFieldEnd()
   if self.subject is not None:
     oprot.writeFieldBegin('subject', TType.STRING, 2)
     oprot.writeString(self.subject)
     oprot.writeFieldEnd()
   if self.content is not None:
     oprot.writeFieldBegin('content', TType.STRING, 3)
     oprot.writeString(self.content)
     oprot.writeFieldEnd()
   if self.attach_files is not None:
     oprot.writeFieldBegin('attach_files', TType.LIST, 4)
     oprot.writeListBegin(TType.STRING, len(self.attach_files))
     for iter6 in self.attach_files:
       oprot.writeString(iter6)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   if self.priority is not None:
     oprot.writeFieldBegin('priority', TType.I32, 5)
     oprot.writeI32(self.priority)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 25
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('TAdminCommentQueryData')
   if self.totalCount is not None:
     oprot.writeFieldBegin('totalCount', TType.I32, 1)
     oprot.writeI32(self.totalCount)
     oprot.writeFieldEnd()
   if self.totalPage is not None:
     oprot.writeFieldBegin('totalPage', TType.I32, 2)
     oprot.writeI32(self.totalPage)
     oprot.writeFieldEnd()
   if self.pageSize is not None:
     oprot.writeFieldBegin('pageSize', TType.I32, 3)
     oprot.writeI32(self.pageSize)
     oprot.writeFieldEnd()
   if self.currPage is not None:
     oprot.writeFieldBegin('currPage', TType.I32, 4)
     oprot.writeI32(self.currPage)
     oprot.writeFieldEnd()
   if self.dataList is not None:
     oprot.writeFieldBegin('dataList', TType.LIST, 5)
     oprot.writeListBegin(TType.STRUCT, len(self.dataList))
     for iter6 in self.dataList:
       iter6.write(oprot)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 26
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('addDevice_args')
   if self.deviceId is not None:
     oprot.writeFieldBegin('deviceId', TType.I64, 1)
     oprot.writeI64(self.deviceId)
     oprot.writeFieldEnd()
   if self.deviceKey is not None:
     oprot.writeFieldBegin('deviceKey', TType.STRING, 2)
     oprot.writeString(self.deviceKey)
     oprot.writeFieldEnd()
   if self.serverType is not None:
     oprot.writeFieldBegin('serverType', TType.STRING, 3)
     oprot.writeString(self.serverType)
     oprot.writeFieldEnd()
   if self.supportedTaskTypes is not None:
     oprot.writeFieldBegin('supportedTaskTypes', TType.LIST, 4)
     oprot.writeListBegin(TType.STRING, len(self.supportedTaskTypes))
     for iter6 in self.supportedTaskTypes:
       oprot.writeString(iter6)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   if self.deviceInfo is not None:
     oprot.writeFieldBegin('deviceInfo', TType.STRING, 5)
     oprot.writeString(self.deviceInfo)
     oprot.writeFieldEnd()
   if self.connectToServerNeeded is not None:
     oprot.writeFieldBegin('connectToServerNeeded', TType.BOOL, 6)
     oprot.writeBool(self.connectToServerNeeded)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 27
0
 def write(self, oprot):
     if (
         oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated
         and self.thrift_spec is not None
         and fastbinary is not None
     ):
         oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin("TranslatePackage")
     if self.word is not None:
         oprot.writeFieldBegin("word", TType.STRING, 1)
         oprot.writeString(self.word.encode("utf-8"))
         oprot.writeFieldEnd()
     if self.lemma is not None:
         oprot.writeFieldBegin("lemma", TType.STRING, 2)
         oprot.writeString(self.lemma.encode("utf-8"))
         oprot.writeFieldEnd()
     if self.partOfSpeech is not None:
         oprot.writeFieldBegin("partOfSpeech", TType.I32, 3)
         oprot.writeI32(self.partOfSpeech)
         oprot.writeFieldEnd()
     if self.translations is not None:
         oprot.writeFieldBegin("translations", TType.LIST, 4)
         oprot.writeListBegin(TType.STRUCT, len(self.translations))
         for iter6 in self.translations:
             iter6.write(oprot)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('performBinaryUpdate_args')
   if self.relationName is not None:
     oprot.writeFieldBegin('relationName', TType.STRING, 1)
     oprot.writeString(self.relationName)
     oprot.writeFieldEnd()
   if self.old_column1 is not None:
     oprot.writeFieldBegin('old_column1', TType.STRING, 2)
     oprot.writeString(self.old_column1)
     oprot.writeFieldEnd()
   if self.old_column2 is not None:
     oprot.writeFieldBegin('old_column2', TType.STRING, 3)
     oprot.writeString(self.old_column2)
     oprot.writeFieldEnd()
   if self.new_column1 is not None:
     oprot.writeFieldBegin('new_column1', TType.STRING, 4)
     oprot.writeString(self.new_column1)
     oprot.writeFieldEnd()
   if self.new_column2 is not None:
     oprot.writeFieldBegin('new_column2', TType.STRING, 5)
     oprot.writeString(self.new_column2)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 29
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('ProblemaCondicaoAvaliacaoAIThrift')
   if self.ciaps is not None:
     oprot.writeFieldBegin('ciaps', TType.LIST, 1)
     oprot.writeListBegin(TType.STRING, len(self.ciaps))
     for iter13 in self.ciaps:
       oprot.writeString(iter13)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   if self.outroCiap1 is not None:
     oprot.writeFieldBegin('outroCiap1', TType.STRING, 2)
     oprot.writeString(self.outroCiap1)
     oprot.writeFieldEnd()
   if self.outroCiap2 is not None:
     oprot.writeFieldBegin('outroCiap2', TType.STRING, 3)
     oprot.writeString(self.outroCiap2)
     oprot.writeFieldEnd()
   if self.cid10 is not None:
     oprot.writeFieldBegin('cid10', TType.STRING, 4)
     oprot.writeString(self.cid10)
     oprot.writeFieldEnd()
   if self.cid10_2 is not None:
     oprot.writeFieldBegin('cid10_2', TType.STRING, 5)
     oprot.writeString(self.cid10_2)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 30
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('ThriftFlumeReport')
   if self.stringMetrics != None:
     oprot.writeFieldBegin('stringMetrics', TType.MAP, 3)
     oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.stringMetrics))
     for kiter21,viter22 in self.stringMetrics.items():
       oprot.writeString(kiter21)
       oprot.writeString(viter22)
     oprot.writeMapEnd()
     oprot.writeFieldEnd()
   if self.longMetrics != None:
     oprot.writeFieldBegin('longMetrics', TType.MAP, 4)
     oprot.writeMapBegin(TType.STRING, TType.I64, len(self.longMetrics))
     for kiter23,viter24 in self.longMetrics.items():
       oprot.writeString(kiter23)
       oprot.writeI64(viter24)
     oprot.writeMapEnd()
     oprot.writeFieldEnd()
   if self.doubleMetrics != None:
     oprot.writeFieldBegin('doubleMetrics', TType.MAP, 5)
     oprot.writeMapBegin(TType.STRING, TType.DOUBLE, len(self.doubleMetrics))
     for kiter25,viter26 in self.doubleMetrics.items():
       oprot.writeString(kiter25)
       oprot.writeDouble(viter26)
     oprot.writeMapEnd()
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
   def validate(self):
     return
Ejemplo n.º 31
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('searchCreativeTexts_result')
   if self.success != None:
     oprot.writeFieldBegin('success', TType.LIST, 0)
     oprot.writeListBegin(TType.STRING, len(self.success))
     for iter34 in self.success:
       oprot.writeString(iter34)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   if self.e != None:
     oprot.writeFieldBegin('e', TType.STRUCT, 1)
     self.e.write(oprot)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
   def validate(self):
     return
Ejemplo n.º 32
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('Person')
     if self.name is not None:
         oprot.writeFieldBegin('name', TType.STRING, 1)
         oprot.writeString(self.name.encode('utf-8'))
         oprot.writeFieldEnd()
     if self.phones is not None:
         oprot.writeFieldBegin('phones', TType.LIST, 2)
         oprot.writeListBegin(TType.STRUCT, len(self.phones))
         for iter6 in self.phones:
             iter6.write(oprot)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 33
0
    def write(self, oprot):
        if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
            oprot.trans.write(
                fastbinary.encode_binary(self,
                                         (self.__class__, self.thrift_spec)))
            return
        oprot.writeStructBegin('TCell')
        if self.value != None:
            oprot.writeFieldBegin('value', TType.STRING, 1)
            oprot.writeString(self.value)
            oprot.writeFieldEnd()
        if self.timestamp != None:
            oprot.writeFieldBegin('timestamp', TType.I64, 2)
            oprot.writeI64(self.timestamp)
            oprot.writeFieldEnd()
        oprot.writeFieldStop()
        oprot.writeStructEnd()

        def validate(self):
            return
Ejemplo n.º 34
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('SessionKeys')
     if self.ret is not None:
         oprot.writeFieldBegin('ret', TType.I32, 1)
         oprot.writeI32(self.ret)
         oprot.writeFieldEnd()
     if self.keys is not None:
         oprot.writeFieldBegin('keys', TType.LIST, 2)
         oprot.writeListBegin(TType.STRING, len(self.keys))
         for iter6 in self.keys:
             oprot.writeString(iter6)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 35
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('rangeQuery_result')
     if self.success is not None:
         oprot.writeFieldBegin('success', TType.LIST, 0)
         oprot.writeListBegin(TType.STRUCT, len(self.success))
         for iter13 in self.success:
             iter13.write(oprot)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     if self.err is not None:
         oprot.writeFieldBegin('err', TType.STRUCT, 1)
         self.err.write(oprot)
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 36
0
    def write(self, oprot):
        if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
            oprot.trans.write(
                fastbinary.encode_binary(self,
                                         (self.__class__, self.thrift_spec)))
            return
        oprot.writeStructBegin('get_job_data_result')
        if self.success != None:
            oprot.writeFieldBegin('success', TType.STRUCT, 0)
            self.success.write(oprot)
            oprot.writeFieldEnd()
        if self.error != None:
            oprot.writeFieldBegin('error', TType.STRUCT, 1)
            self.error.write(oprot)
            oprot.writeFieldEnd()
        oprot.writeFieldStop()
        oprot.writeStructEnd()

        def validate(self):
            return
Ejemplo n.º 37
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('Linking')
     if self.metadata is not None:
         oprot.writeFieldBegin('metadata', TType.STRUCT, 1)
         self.metadata.write(oprot)
         oprot.writeFieldEnd()
     if self.linkList is not None:
         oprot.writeFieldBegin('linkList', TType.LIST, 2)
         oprot.writeListBegin(TType.STRUCT, len(self.linkList))
         for iter13 in self.linkList:
             iter13.write(oprot)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 38
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('show_puke_ret_t')
     if self.nTableIndex is not None:
         oprot.writeFieldBegin('nTableIndex', TType.I32, 1)
         oprot.writeI32(self.nTableIndex)
         oprot.writeFieldEnd()
     if self.listPuke is not None:
         oprot.writeFieldBegin('listPuke', TType.LIST, 2)
         oprot.writeListBegin(TType.I32, len(self.listPuke))
         for iter34 in self.listPuke:
             oprot.writeI32(iter34)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 39
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('BatchMutation')
     if self.row is not None:
         oprot.writeFieldBegin('row', TType.STRING, 1)
         oprot.writeString(self.row)
         oprot.writeFieldEnd()
     if self.mutations is not None:
         oprot.writeFieldBegin('mutations', TType.LIST, 2)
         oprot.writeListBegin(TType.STRUCT, len(self.mutations))
         for iter6 in self.mutations:
             iter6.write(oprot)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 40
0
    def write(self, oprot):
        if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
            oprot.trans.write(
                fastbinary.encode_binary(self,
                                         (self.__class__, self.thrift_spec)))
            return
        oprot.writeStructBegin('CLISyncEvent_ResponseIDL_result')
        if self.success != None:
            oprot.writeFieldBegin('success', TType.I32, 0)
            oprot.writeI32(self.success)
            oprot.writeFieldEnd()
        if self.e != None:
            oprot.writeFieldBegin('e', TType.STRUCT, 1)
            self.e.write(oprot)
            oprot.writeFieldEnd()
        oprot.writeFieldStop()
        oprot.writeStructEnd()

        def validate(self):
            pass
Ejemplo n.º 41
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('TStatus')
     if self.status_code is not None:
         oprot.writeFieldBegin('status_code', TType.I32, 1)
         oprot.writeI32(self.status_code)
         oprot.writeFieldEnd()
     if self.error_msgs is not None:
         oprot.writeFieldBegin('error_msgs', TType.LIST, 2)
         oprot.writeListBegin(TType.STRING, len(self.error_msgs))
         for iter6 in self.error_msgs:
             oprot.writeString(iter6)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 42
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('LogEntry')
     if self.category != None:
         oprot.writeFieldBegin('category', TType.STRING, 1)
         oprot.writeString(self.category)
         oprot.writeFieldEnd()
     if self.message != None:
         oprot.writeFieldBegin('message', TType.STRING, 2)
         oprot.writeString(self.message)
         oprot.writeFieldEnd()
     if self.message != None:
         oprot.writeFieldBegin('traceId', TType.STRING, 3)
         oprot.writeString(self.traceId)
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 43
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('put_args')
     if self.Key is not None:
         oprot.writeFieldBegin('Key', TType.STRING, 1)
         oprot.writeString(self.Key)
         oprot.writeFieldEnd()
     if self.List is not None:
         oprot.writeFieldBegin('List', TType.LIST, 2)
         oprot.writeListBegin(TType.STRUCT, len(self.List))
         for iter20 in self.List:
             iter20.write(oprot)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 44
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('TGetAllCatalogObjectsResponse')
     if self.max_catalog_version is not None:
         oprot.writeFieldBegin('max_catalog_version', TType.I64, 1)
         oprot.writeI64(self.max_catalog_version)
         oprot.writeFieldEnd()
     if self.objects is not None:
         oprot.writeFieldBegin('objects', TType.LIST, 2)
         oprot.writeListBegin(TType.STRUCT, len(self.objects))
         for iter6 in self.objects:
             iter6.write(oprot)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 45
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('ExameThrift')
     if self.codigoExame is not None:
         oprot.writeFieldBegin('codigoExame', TType.STRING, 1)
         oprot.writeString(self.codigoExame)
         oprot.writeFieldEnd()
     if self.solicitadoAvaliado is not None:
         oprot.writeFieldBegin('solicitadoAvaliado', TType.LIST, 2)
         oprot.writeListBegin(TType.STRING, len(self.solicitadoAvaliado))
         for iter6 in self.solicitadoAvaliado:
             oprot.writeString(iter6)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 46
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('ValidationResults')
     if self.validationState is not None:
         oprot.writeFieldBegin('validationState', TType.BOOL, 1)
         oprot.writeBool(self.validationState)
         oprot.writeFieldEnd()
     if self.validationResultList is not None:
         oprot.writeFieldBegin('validationResultList', TType.LIST, 2)
         oprot.writeListBegin(TType.STRUCT, len(self.validationResultList))
         for iter6 in self.validationResultList:
             iter6.write(oprot)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 47
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('MetricReading')
     if self.value is not None:
         oprot.writeFieldBegin('value', TType.DOUBLE, 1)
         oprot.writeDouble(self.value)
         oprot.writeFieldEnd()
     if self.labels is not None:
         oprot.writeFieldBegin('labels', TType.SET, 3)
         oprot.writeSetBegin(TType.STRING, len(self.labels))
         for iter6 in self.labels:
             oprot.writeString(iter6)
         oprot.writeSetEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 48
0
    def write(self, oprot):
        if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
            oprot.trans.write(
                fastbinary.encode_binary(self,
                                         (self.__class__, self.thrift_spec)))
            return
        oprot.writeStructBegin('NetworkElementTestNullOutput')
        if self.val1 != None:
            oprot.writeFieldBegin('val1', TType.I32, 1)
            oprot.writeI32(self.val1)
            oprot.writeFieldEnd()
        if self.val2 != None:
            oprot.writeFieldBegin('val2', TType.I32, 2)
            oprot.writeI32(self.val2)
            oprot.writeFieldEnd()
        oprot.writeFieldStop()
        oprot.writeStructEnd()

        def validate(self):
            pass
Ejemplo n.º 49
0
    def write(self, oprot):
        if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
            oprot.trans.write(
                fastbinary.encode_binary(self,
                                         (self.__class__, self.thrift_spec)))
            return
        oprot.writeStructBegin('NetworkElementTestDeferredResults')
        if self.test_delay_msec != None:
            oprot.writeFieldBegin('test_delay_msec', TType.I32, 1)
            oprot.writeI32(self.test_delay_msec)
            oprot.writeFieldEnd()
        if self.test_message != None:
            oprot.writeFieldBegin('test_message', TType.STRING, 2)
            oprot.writeString(self.test_message)
            oprot.writeFieldEnd()
        oprot.writeFieldStop()
        oprot.writeStructEnd()

        def validate(self):
            pass
Ejemplo n.º 50
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('bfd_test_action_desc_t')
     if self.name is not None:
         oprot.writeFieldBegin('name', TType.STRING, 1)
         oprot.writeString(self.name)
         oprot.writeFieldEnd()
     if self.data is not None:
         oprot.writeFieldBegin('data', TType.LIST, 2)
         oprot.writeListBegin(TType.BYTE, len(self.data))
         for iter6 in self.data:
             oprot.writeByte(iter6)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 51
0
    def write(self, oprot):
        if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
            oprot.trans.write(
                fastbinary.encode_binary(self,
                                         (self.__class__, self.thrift_spec)))
            return
        oprot.writeStructBegin('VmCredentialIDL')
        if self.credentials != None:
            oprot.writeFieldBegin('credentials', TType.LIST, 1)
            oprot.writeListBegin(TType.BYTE, len(self.credentials))
            for iter6 in self.credentials:
                oprot.writeByte(iter6)

            oprot.writeListEnd()
            oprot.writeFieldEnd()
        oprot.writeFieldStop()
        oprot.writeStructEnd()

        def validate(self):
            pass
Ejemplo n.º 52
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('PlayingAwardFields')
     if self.playing_template_ is not None:
         oprot.writeFieldBegin('playing_template_', TType.I32, 1)
         oprot.writeI32(self.playing_template_)
         oprot.writeFieldEnd()
     if self.awards_ is not None:
         oprot.writeFieldBegin('awards_', TType.LIST, 2)
         oprot.writeListBegin(TType.STRUCT, len(self.awards_))
         for iter6 in self.awards_:
             iter6.write(oprot)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 53
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('Function')
     if self.func_stat is not None:
         oprot.writeFieldBegin('func_stat', TType.STRUCT, 1)
         self.func_stat.write(oprot)
         oprot.writeFieldEnd()
     if self.callers is not None:
         oprot.writeFieldBegin('callers', TType.LIST, 2)
         oprot.writeListBegin(TType.STRUCT, len(self.callers))
         for iter6 in self.callers:
             iter6.write(oprot)
         oprot.writeListEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 54
0
    def write(self, oprot):
        if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
            oprot.trans.write(
                fastbinary.encode_binary(self,
                                         (self.__class__, self.thrift_spec)))
            return
        oprot.writeStructBegin('Iden_Event_IDL')
        if self.event != None:
            oprot.writeFieldBegin('event', TType.I32, 1)
            oprot.writeI32(self.event)
            oprot.writeFieldEnd()
        if self.filter != None:
            oprot.writeFieldBegin('filter', TType.STRUCT, 2)
            self.filter.write(oprot)
            oprot.writeFieldEnd()
        oprot.writeFieldStop()
        oprot.writeStructEnd()

        def validate(self):
            pass
Ejemplo n.º 55
0
    def write(self, oprot):
        if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
            oprot.trans.write(
                fastbinary.encode_binary(self,
                                         (self.__class__, self.thrift_spec)))
            return
        oprot.writeStructBegin('remove_service_result')
        if self.success != None:
            oprot.writeFieldBegin('success', TType.BOOL, 0)
            oprot.writeBool(self.success)
            oprot.writeFieldEnd()
        if self.ex != None:
            oprot.writeFieldBegin('ex', TType.STRUCT, 1)
            self.ex.write(oprot)
            oprot.writeFieldEnd()
        oprot.writeFieldStop()
        oprot.writeStructEnd()

        def validate(self):
            return
Ejemplo n.º 56
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('get_target_mimetypes_result')
     if self.success is not None:
         oprot.writeFieldBegin('success', TType.MAP, 0)
         oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
         for kiter20, viter21 in self.success.items():
             oprot.writeString(kiter20)
             oprot.writeListBegin(TType.STRUCT, len(viter21))
             for iter22 in viter21:
                 iter22.write(oprot)
             oprot.writeListEnd()
         oprot.writeMapEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 57
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('TipsStidInfo')
     if self.globalId is not None:
         oprot.writeFieldBegin('globalId', TType.STRING, 1)
         oprot.writeString(self.globalId)
         oprot.writeFieldEnd()
     if self.strategy is not None:
         oprot.writeFieldBegin('strategy', TType.STRING, 2)
         oprot.writeString(self.strategy)
         oprot.writeFieldEnd()
     if self.alg is not None:
         oprot.writeFieldBegin('alg', TType.STRING, 3)
         oprot.writeString(self.alg)
         oprot.writeFieldEnd()
     if self.server is not None:
         oprot.writeFieldBegin('server', TType.STRING, 4)
         oprot.writeString(self.server)
         oprot.writeFieldEnd()
     if self.kv is not None:
         oprot.writeFieldBegin('kv', TType.MAP, 5)
         oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.kv))
         for kiter14, viter15 in self.kv.items():
             oprot.writeString(kiter14)
             oprot.writeString(viter15)
         oprot.writeMapEnd()
         oprot.writeFieldEnd()
     if self.ext is not None:
         oprot.writeFieldBegin('ext', TType.MAP, 6)
         oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.ext))
         for kiter16, viter17 in self.ext.items():
             oprot.writeString(kiter16)
             oprot.writeString(viter17)
         oprot.writeMapEnd()
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 58
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('Notification')
     if self.notificationId is not None:
         oprot.writeFieldBegin('notificationId', TType.STRING, 1)
         oprot.writeString(self.notificationId)
         oprot.writeFieldEnd()
     if self.gatewayId is not None:
         oprot.writeFieldBegin('gatewayId', TType.STRING, 2)
         oprot.writeString(self.gatewayId)
         oprot.writeFieldEnd()
     if self.title is not None:
         oprot.writeFieldBegin('title', TType.STRING, 3)
         oprot.writeString(self.title)
         oprot.writeFieldEnd()
     if self.notificationMessage is not None:
         oprot.writeFieldBegin('notificationMessage', TType.STRING, 4)
         oprot.writeString(self.notificationMessage)
         oprot.writeFieldEnd()
     if self.creationTime is not None:
         oprot.writeFieldBegin('creationTime', TType.I64, 5)
         oprot.writeI64(self.creationTime)
         oprot.writeFieldEnd()
     if self.publishedTime is not None:
         oprot.writeFieldBegin('publishedTime', TType.I64, 6)
         oprot.writeI64(self.publishedTime)
         oprot.writeFieldEnd()
     if self.expirationTime is not None:
         oprot.writeFieldBegin('expirationTime', TType.I64, 7)
         oprot.writeI64(self.expirationTime)
         oprot.writeFieldEnd()
     if self.priority is not None:
         oprot.writeFieldBegin('priority', TType.I32, 8)
         oprot.writeI32(self.priority)
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()
Ejemplo n.º 59
0
 def write(self, oprot):
   if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
     return
   oprot.writeStructBegin('ItemFields')
   if self.id_ is not None:
     oprot.writeFieldBegin('id_', TType.STRING, 1)
     oprot.writeString(self.id_)
     oprot.writeFieldEnd()
   if self.template_id_ is not None:
     oprot.writeFieldBegin('template_id_', TType.I32, 2)
     oprot.writeI32(self.template_id_)
     oprot.writeFieldEnd()
   if self.type_ is not None:
     oprot.writeFieldBegin('type_', TType.I32, 3)
     oprot.writeI32(self.type_)
     oprot.writeFieldEnd()
   if self.location_ is not None:
     oprot.writeFieldBegin('location_', TType.I16, 4)
     oprot.writeI16(self.location_)
     oprot.writeFieldEnd()
   if self.item_client_fields_ is not None:
     oprot.writeFieldBegin('item_client_fields_', TType.LIST, 5)
     oprot.writeListBegin(TType.I32, len(self.item_client_fields_))
     for iter12 in self.item_client_fields_:
       oprot.writeI32(iter12)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   if self.equipment_client_fields_ is not None:
     oprot.writeFieldBegin('equipment_client_fields_', TType.LIST, 6)
     oprot.writeListBegin(TType.I32, len(self.equipment_client_fields_))
     for iter13 in self.equipment_client_fields_:
       oprot.writeI32(iter13)
     oprot.writeListEnd()
     oprot.writeFieldEnd()
   if self.first_equip_time_ is not None:
     oprot.writeFieldBegin('first_equip_time_', TType.STRING, 7)
     oprot.writeString(self.first_equip_time_)
     oprot.writeFieldEnd()
   oprot.writeFieldStop()
   oprot.writeStructEnd()
Ejemplo n.º 60
0
 def write(self, oprot):
     if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
         oprot.trans.write(
             fastbinary.encode_binary(self,
                                      (self.__class__, self.thrift_spec)))
         return
     oprot.writeStructBegin('tm_pfc_cos_map_t')
     if self.CoS0_to_iCos is not None:
         oprot.writeFieldBegin('CoS0_to_iCos', TType.I32, 1)
         oprot.writeI32(self.CoS0_to_iCos)
         oprot.writeFieldEnd()
     if self.CoS1_to_iCos is not None:
         oprot.writeFieldBegin('CoS1_to_iCos', TType.I32, 2)
         oprot.writeI32(self.CoS1_to_iCos)
         oprot.writeFieldEnd()
     if self.CoS2_to_iCos is not None:
         oprot.writeFieldBegin('CoS2_to_iCos', TType.I32, 3)
         oprot.writeI32(self.CoS2_to_iCos)
         oprot.writeFieldEnd()
     if self.CoS3_to_iCos is not None:
         oprot.writeFieldBegin('CoS3_to_iCos', TType.I32, 4)
         oprot.writeI32(self.CoS3_to_iCos)
         oprot.writeFieldEnd()
     if self.CoS4_to_iCos is not None:
         oprot.writeFieldBegin('CoS4_to_iCos', TType.I32, 5)
         oprot.writeI32(self.CoS4_to_iCos)
         oprot.writeFieldEnd()
     if self.CoS5_to_iCos is not None:
         oprot.writeFieldBegin('CoS5_to_iCos', TType.I32, 6)
         oprot.writeI32(self.CoS5_to_iCos)
         oprot.writeFieldEnd()
     if self.CoS6_to_iCos is not None:
         oprot.writeFieldBegin('CoS6_to_iCos', TType.I32, 7)
         oprot.writeI32(self.CoS6_to_iCos)
         oprot.writeFieldEnd()
     if self.CoS7_to_iCos is not None:
         oprot.writeFieldBegin('CoS7_to_iCos', TType.I32, 8)
         oprot.writeI32(self.CoS7_to_iCos)
         oprot.writeFieldEnd()
     oprot.writeFieldStop()
     oprot.writeStructEnd()