#NEWLINE# def read( self , iprot ) : #NEWLINE# #INDENT# if ( ( iprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated ) and isinstance ( iprot . trans , TTransport . CReadableTransport ) and ( self . thrift_spec is not None ) and ( fastbinary is not None ) ) : #NEWLINE# #INDENT# fastbinary . decode_binary ( self , iprot . trans , ( self . __class__ , self . thrift_spec ) ) #NEWLINE# return #NEWLINE# #UNINDENT# iprot . readStructBegin ( ) #NEWLINE# while True : #NEWLINE# #INDENT# ( fname , ftype , fid ) = iprot . readFieldBegin ( ) #NEWLINE# if ( ftype == TType . STOP ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# if ( fid == 1 ) : #NEWLINE# #INDENT# if ( ftype == TType . STRING ) : #NEWLINE# #INDENT# self . frm = iprot . readString ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( fid == 2 ) : #NEWLINE# #INDENT# if ( ftype == TType . STRING ) : #NEWLINE# #INDENT# self . to = iprot . readString ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( fid == 3 ) : #NEWLINE# #INDENT# if ( ftype == TType . I32 ) : #NEWLINE# #INDENT# self . toType = iprot . readI32 ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( fid == 4 ) : #NEWLINE# #INDENT# if ( ftype == TType . STRING ) : #NEWLINE# #INDENT# self . id = iprot . readString ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( fid == 5 ) : #NEWLINE# #INDENT# if ( ftype == TType . I64 ) : #NEWLINE# #INDENT# self . createdTime = iprot . readI64 ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( fid == 6 ) : #NEWLINE# #INDENT# if ( ftype == TType . I64 ) : #NEWLINE# #INDENT# self . deliveredTime = iprot . readI64 ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( fid == 10 ) : #NEWLINE# #INDENT# if ( ftype == TType . STRING ) : #NEWLINE# #INDENT# self . text = iprot . readString ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( fid == 11 ) : #NEWLINE# #INDENT# if ( ftype == TType . STRUCT ) : #NEWLINE# #INDENT# self . location = Location ( ) #NEWLINE# self . location . read ( iprot ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( fid == 14 ) : #NEWLINE# #INDENT# if ( ftype == TType . BOOL ) : #NEWLINE# #INDENT# self . hasContent = iprot . readBool ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( fid == 15 ) : #NEWLINE# #INDENT# if ( ftype == TType . I32 ) : #NEWLINE# #INDENT# self . contentType = iprot . readI32 ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( fid == 17 ) : #NEWLINE# #INDENT# if ( ftype == TType . STRING ) : #NEWLINE# #INDENT# self . contentPreview = iprot . readString ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( fid == 18 ) : #NEWLINE# #INDENT# if ( ftype == TType . MAP ) : #NEWLINE# #INDENT# self . contentMetadata = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# ( _ktype10 , _vtype11 , _size9 ) = iprot . readMapBegin ( ) #NEWLINE# for _i13 in xrange ( _size9 ) : #NEWLINE# #INDENT# _key14 = iprot . readString ( ) #NEWLINE# _val15 = iprot . readString ( ) #NEWLINE# self . contentMetadata [ _key14 ] = _val15 #NEWLINE# #UNINDENT# iprot . readMapEnd ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# iprot . skip ( ftype ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# iprot . readFieldEnd ( ) #NEWLINE# #UNINDENT# iprot . readStructEnd ( )