#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 ( 'Annotation' ) #NEWLINE# if ( self . timestamp is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'timestamp' , TType . I64 , 1 ) #NEWLINE# oprot . writeI64 ( self . timestamp ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . value is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'value' , TType . STRING , 2 ) #NEWLINE# oprot . writeString ( self . value ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . host is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'host' , TType . STRUCT , 3 ) #NEWLINE# self . host . write ( oprot ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# oprot . writeFieldStop ( ) #NEWLINE# oprot . writeStructEnd ( )