2 # Autogenerated by Thrift Compiler (0.9.3)
4 # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
9 from thrift.Thrift import TType, TMessageType, TException, TApplicationException
11 from thrift.transport import TTransport
12 from thrift.protocol import TBinaryProtocol, TProtocol
14 from thrift.protocol import fastbinary
22 Domino sends periodic heartbeats from
23 Domino Clients and Domino Server echos
31 (1, TType.LIST, 'CLI_input', (TType.STRING,None), None, ), # 1
34 def __init__(self, CLI_input=None,):
35 self.CLI_input = CLI_input
37 def read(self, iprot):
38 if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
39 fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
41 iprot.readStructBegin()
43 (fname, ftype, fid) = iprot.readFieldBegin()
44 if ftype == TType.STOP:
47 if ftype == TType.LIST:
49 (_etype3, _size0) = iprot.readListBegin()
50 for _i4 in xrange(_size0):
51 _elem5 = iprot.readString()
52 self.CLI_input.append(_elem5)
61 def write(self, oprot):
62 if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
63 oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
65 oprot.writeStructBegin('CLIMessage')
66 if self.CLI_input is not None:
67 oprot.writeFieldBegin('CLI_input', TType.LIST, 1)
68 oprot.writeListBegin(TType.STRING, len(self.CLI_input))
69 for iter6 in self.CLI_input:
70 oprot.writeString(iter6)
73 oprot.writeFieldStop()
74 oprot.writeStructEnd()
82 value = (value * 31) ^ hash(self.CLI_input)
86 L = ['%s=%r' % (key, value)
87 for key, value in self.__dict__.iteritems()]
88 return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
90 def __eq__(self, other):
91 return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
93 def __ne__(self, other):
94 return not (self == other)
104 (1, TType.LIST, 'CLI_response', (TType.STRING,None), None, ), # 1
107 def __init__(self, CLI_response=None,):
108 self.CLI_response = CLI_response
110 def read(self, iprot):
111 if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
112 fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
114 iprot.readStructBegin()
116 (fname, ftype, fid) = iprot.readFieldBegin()
117 if ftype == TType.STOP:
120 if ftype == TType.LIST:
121 self.CLI_response = []
122 (_etype10, _size7) = iprot.readListBegin()
123 for _i11 in xrange(_size7):
124 _elem12 = iprot.readString()
125 self.CLI_response.append(_elem12)
132 iprot.readStructEnd()
134 def write(self, oprot):
135 if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
136 oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
138 oprot.writeStructBegin('CLIResponse')
139 if self.CLI_response is not None:
140 oprot.writeFieldBegin('CLI_response', TType.LIST, 1)
141 oprot.writeListBegin(TType.STRING, len(self.CLI_response))
142 for iter13 in self.CLI_response:
143 oprot.writeString(iter13)
145 oprot.writeFieldEnd()
146 oprot.writeFieldStop()
147 oprot.writeStructEnd()
155 value = (value * 31) ^ hash(self.CLI_response)
159 L = ['%s=%r' % (key, value)
160 for key, value in self.__dict__.iteritems()]
161 return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
163 def __eq__(self, other):
164 return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
166 def __ne__(self, other):
167 return not (self == other)