#NEWLINE# def write( self , oprot ) : #NEWLINE# #INDENT# if ( ( oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated ) and ( self . thrift_spec is not None ) and ( fastbinary is not None ) ) : #NEWLINE# #INDENT# oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) #NEWLINE# return #NEWLINE# #UNINDENT# oprot . writeStructBegin ( 'Operation' ) #NEWLINE# if ( self . revision is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'revision' , TType . I64 , 1 ) #NEWLINE# oprot . writeI64 ( self . revision ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . createdTime is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'createdTime' , TType . I64 , 2 ) #NEWLINE# oprot . writeI64 ( self . createdTime ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . type is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'type' , TType . I32 , 3 ) #NEWLINE# oprot . writeI32 ( self . type ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . reqSeq is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'reqSeq' , TType . I32 , 4 ) #NEWLINE# oprot . writeI32 ( self . reqSeq ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . checkSum is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'checkSum' , TType . STRING , 5 ) #NEWLINE# oprot . writeString ( self . checkSum ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . status is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'status' , TType . I32 , 7 ) #NEWLINE# oprot . writeI32 ( self . status ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . param1 is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'param1' , TType . STRING , 10 ) #NEWLINE# oprot . writeString ( self . param1 ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . param2 is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'param2' , TType . STRING , 11 ) #NEWLINE# oprot . writeString ( self . param2 ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . param3 is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'param3' , TType . STRING , 12 ) #NEWLINE# oprot . writeString ( self . param3 ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . message is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'message' , TType . STRUCT , 20 ) #NEWLINE# self . message . write ( oprot ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# oprot . writeFieldStop ( ) #NEWLINE# oprot . writeStructEnd ( )