#NEWLINE# def Pack( self , msg , type_url_prefix = 'type.googleapis.com/' ) : #NEWLINE# #INDENT# 'Packs the specified message into current Any message.' #NEWLINE# if ( ( len ( type_url_prefix ) < 1 ) or ( type_url_prefix [ ( - 1 ) ] != '/' ) ) : #NEWLINE# #INDENT# self . type_url = ( '%s/%s' % ( type_url_prefix , msg . DESCRIPTOR . full_name ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . type_url = ( '%s%s' % ( type_url_prefix , msg . DESCRIPTOR . full_name ) ) #NEWLINE# #UNINDENT# self . value = msg . SerializeToString ( )