#NEWLINE# def __getattr__( self , msg_kind ) : #NEWLINE# #INDENT# 'Return value for msg_kind.\n\n    Args:\n      msg_kind: The category of message.\n\n    Returns:\n      String for msg_kind if valid.\n\n    Raises:\n      LogMsgKindNotFound: Raised if not a valid log message.\n    ' #NEWLINE# if msg_kind . startswith ( 'MSG_' ) : #NEWLINE# #INDENT# if ( msg_kind [ 4 : ] in self . _msg_kinds ) : #NEWLINE# #INDENT# return self [ 4 : ] #NEWLINE# #UNINDENT# #UNINDENT# raise LogMsgKindNotFound ( )