#NEWLINE# def process_payload( self , msg ) : #NEWLINE# #INDENT# 'Processes a fully receieved payload proto.' #NEWLINE# response = robotapi_pb2 . RobotResponse ( ) #NEWLINE# response . ParseFromString ( msg ) #NEWLINE# logging . debug ( 'Received response:\n<\n%s>' , response ) #NEWLINE# if ( self . last_sent_request and ( self . last_sent_request . key == response . key ) ) : #NEWLINE# #INDENT# self . context_handler . handle_response ( response ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logging . warn ( 'Recieved extra response for a retry. Response was for key: %s but I expected key %s.' , response . key , response . last_sent_request . key )