def _log_entry_mapping_to_pb(mapping):
 entry_pb = LogEntry()
 if ('timestamp' in mapping):
  mapping['timestamp'] = _datetime_to_rfc3339(mapping['timestamp'])
 ParseDict(mapping, entry_pb)
 return entry_pb

def _log_entry_mapping_to_pb ( mapping ) : entry_pb = LogEntry ( ) if ( 'timestamp' in mapping ) : mapping [ 'timestamp' ] = _datetime_to_rfc3339 ( mapping [ 'timestamp' ] ) ParseDict ( mapping , entry_pb ) return entry_pb
helper for :meth:write_entries .